| 1 | | if [ -f "${0%/*}/consyntools.jar" ]; then |
| 2 | | java -jar ${0%/*}/consyntools.jar Obfuscator $1 $2 _ |
| | 1 | BASEDIR=${0%/*} |
| | 2 | if [ -f "${BASEDIR}/consyntools.jar" ]; then |
| | 3 | sed -e "s/\/\*@cc_on/{@cc_on}/g;s/\/\*@_cc_on/{@_cc_on}/g;s/@else @\*\//{@else@}/g;s/\/\*@end @\*\//{@end@}/g;" $1 > ${BASEDIR}/tmp.js |
| | 4 | java -jar ${BASEDIR}/consyntools.jar Obfuscator ${BASEDIR}/tmp.js ${BASEDIR}/tmp2.js __ |
| | 5 | sed -e "s/{@cc_on}/\n\/\*@cc_on /g;s/{@_cc_on}/\n\/\*@_cc_on/g;s/{@else@}/@else @\*\//g;s/{@end@}/\/\*@end @\*\//g;" ${BASEDIR}/tmp2.js > $2 |
| | 6 | rm ${BASEDIR}/tmp.js |
| | 7 | rm ${BASEDIR}/tmp2.js |