summaryrefslogtreecommitdiffstats
path: root/clean.sh
diff options
context:
space:
mode:
authorSjon Hortensius <sjon@hortensius.net>2015-01-11 16:40:42 +0100
committerSjon Hortensius <sjon@hortensius.net>2015-01-11 16:40:42 +0100
commitfd607d14bbffcb5b1e8238393f47903f564d1877 (patch)
treebbd14249f8ac13d29c01e85b3563d5dd2cbc89cc /clean.sh
parent7c804c693bd7a0e6724efc7ef2d7f45b250edd6a (diff)
downloadpfsense-fd607d14bbffcb5b1e8238393f47903f564d1877.zip
pfsense-fd607d14bbffcb5b1e8238393f47903f564d1877.tar.gz
configured gitignore for eclipse, add clean.sh
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