Created
January 18, 2012 13:10
-
-
Save RicoP/1632945 to your computer and use it in GitHub Desktop.
SMC bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
java -jar ~/apps/smc_6_1_0/bin/Smc.jar $@ | |
FILE=$_ | |
if [[ "$@" == *-js* ]] | |
then | |
NAME="${FILE%%.*}" | |
SM="${NAME}_sm.js" | |
sed 's/\/\/# No actions.//g' $SM > $SM~ | |
java -jar ~/apps/closure-compiler/compiler.jar --js $SM~ --js_output_file $SM --formatting PRETTY_PRINT --compilation_level WHITESPACE_ONLY | |
rm $SM~ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment