summaryrefslogtreecommitdiffstats
path: root/clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'clean.sh')
-rwxr-xr-xclean.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/clean.sh b/clean.sh
new file mode 100755
index 0000000..3f4e922
--- /dev/null
+++ b/clean.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+sed -i -e 's/> </></g' \
+ -e 's/ / /g' \
+ -e 's/\s+$//g' \
+ -e 's/ width="17" height="17" border="0"//g' \
+ -e 's/<td [^>]+listhdrr[^>]+>/<th>/g' \
+ -e 's/<body[^>]*>//g' \
+ -e 's/<\(table\|td\|span\|div\)[^>]\+>/<\1>/g' \
+ -e 's/<?php include("fbegin.inc"); ?>//g' \
+ -e 's/<?php include("fend.inc"); ?>/<?php include("foot.inc"); ?>/g' \
+ -e 's/<?php echo /<?=/g' \
+ -e 's/;\?\s*?>/?>/g' \
+ -e 's/<?\s*=\s*/<?=/g' \
+ $1 \ No newline at end of file
OpenPOWER on IntegriCloud