Permalink
Browse files

* add scripts

  • Loading branch information...
1 parent 26a9258 commit a4da4d84a93b66eef28026e48d2b0544eb932728 @akissa akissa committed Oct 24, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 scripts/minify.sh
View
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+
+echo "Minifying javascript"
+for infile in $(find . -type f -name "*_uncompressed.js"); do
+ output_file=$(echo $infile|sed -e 's:_uncompressed::')
+ java -jar ~/Documents/devel/java/yuicompressor-2.4.7.jar --charset utf-8 --type js -o $output_file $infile
+ echo -e "\t$infile\t\t\t-> $output_file"
+done
+echo "Minifying CSS"
+for infile in $(find . -type f -name "*_uncompressed.css"); do
+ output_file=$(echo $infile|sed -e 's:_uncompressed::')
+ java -jar ~/Documents/devel/java/yuicompressor-2.4.7.jar --charset utf-8 --type css -o $output_file $infile
+ echo -e "\t$output_file"
+done

0 comments on commit a4da4d8

Please sign in to comment.