diff options
author | Sjon Hortensius <sjon@hortensius.net> | 2015-01-11 16:40:42 +0100 |
---|---|---|
committer | Sjon Hortensius <sjon@hortensius.net> | 2015-01-11 16:40:42 +0100 |
commit | fd607d14bbffcb5b1e8238393f47903f564d1877 (patch) | |
tree | bbd14249f8ac13d29c01e85b3563d5dd2cbc89cc | |
parent | 7c804c693bd7a0e6724efc7ef2d7f45b250edd6a (diff) | |
download | pfsense-fd607d14bbffcb5b1e8238393f47903f564d1877.zip pfsense-fd607d14bbffcb5b1e8238393f47903f564d1877.tar.gz |
configured gitignore for eclipse, add clean.sh
-rw-r--r-- | .gitignore | 5 | ||||
-rwxr-xr-x | clean.sh | 15 |
2 files changed, 20 insertions, 0 deletions
@@ -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 |