diff --git a/src/build.sh b/src/build.sh index 0811388..ec764c6 100755 --- a/src/build.sh +++ b/src/build.sh @@ -12,8 +12,8 @@ if ! cd "$dir" ; then elif ! mkdir -p "$jsdir" ; then echo "ERROR: Could not create directory $jsdir; aborted." >&2 ; exit 1 ; -elif ! type yui-compressor > /dev/null ; then - echo "ERROR: Executable \"yui-compressor\" not found in PATH; aborted." >&2 ; +elif ! type minify > /dev/null ; then + echo "ERROR: Executable \"minify\" not found in PATH; aborted." >&2 ; exit 1 ; fi @@ -47,7 +47,7 @@ do done echo "INFO: Compressing player.js ..." >&2 -yui-compressor player.js >> "$jsdir"/myplayer.min.js +minify player.js >> "$jsdir"/myplayer.min.js chmod 644 "$jsdir"/myplayer.min.js