summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore5
-rwxr-xr-xclean.sh15
2 files changed, 20 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 2b2fe03..da3e8da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,8 @@
_notes/
# Ignore Vim swap files
.*.swp
+upload.sh
+# eclipse
+.buildpath
+.project
+.settings/
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