diff --git a/portal-2/minifyScript b/portal-2/minifyScript new file mode 100755 index 00000000..ea74c003 --- /dev/null +++ b/portal-2/minifyScript @@ -0,0 +1,36 @@ +if [ "$1" != "" ]; then + + echo "Find html files in $1"; + find $1 -name "*.html" -type f + echo " "; + echo " "; + echo " "; + files=( $(find $1 -name "*.html" -type f) ) + + echo " Minifying..."; + echo " "; + total = 0; + for entry in $(find $1 -name "*.html" -type f) + do + echo + s=$(stat -c%s "$entry"); + echo "Size of $entry = $s bytes."; + cat $entry | sed -e :a -re 's///g;/