summaryrefslogtreecommitdiffstats
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
parent7c804c693bd7a0e6724efc7ef2d7f45b250edd6a (diff)
downloadpfsense-fd607d14bbffcb5b1e8238393f47903f564d1877.zip
pfsense-fd607d14bbffcb5b1e8238393f47903f564d1877.tar.gz
configured gitignore for eclipse, add clean.sh
-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