Skip to content

Instantly share code, notes, and snippets.

@RicoP
Created January 18, 2012 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RicoP/1632945 to your computer and use it in GitHub Desktop.
Save RicoP/1632945 to your computer and use it in GitHub Desktop.
SMC bash
#/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