Minify css
[gitphp.git] / util / minify.sh
blob:a/util/minify.sh -> blob:b/util/minify.sh
--- a/util/minify.sh
+++ b/util/minify.sh
@@ -17,6 +17,10 @@
 JSEXT=".js"
 MINEXT=".min.js"
 
+CSSDIR="css"
+CSSEXT=".css"
+MINCSSEXT=".min.css"
+
 rm -f ${JSDIR}/*${MINEXT}
 
 for i in ${JSDIR}/*${JSEXT}; do
@@ -24,3 +28,10 @@
 	java -jar "${COMPRESSORDIR}/${COMPRESSORJAR}" --charset utf-8 -o "${i%$JSEXT}${MINEXT}" "${i}"
 done
 
+rm -f ${CSSDIR}/*${MINCSSEXT}
+
+for i in ${CSSDIR}/*${CSSEXT}; do
+	echo "Minifying ${i}..."
+	java -jar "${COMPRESSORDIR}/${COMPRESSORJAR}" --charset utf-8 -o "${i%$CSSEXT}${MINCSSEXT}" "${i}"
+done
+

comments