diff --git a/src/build.sh b/src/build.sh index e4f7777..0811388 100755 --- a/src/build.sh +++ b/src/build.sh @@ -39,30 +39,26 @@ rm -f "$jsdir"/myplayer.min.js for js in \ ../mediaelement/build/mediaelement-and-player.min.js \ - ../mediaelement-plugins/dist/playlist/playlist.min.js + ../mediaelement-plugins/dist/playlist/playlist.min.js \ + ../jsmediatags/dist/jsmediatags.js do echo "INFO: Appending $js ..." >&2 cat $js >> "$jsdir"/myplayer.min.js done -for js in \ - id3-minimized.js \ - player.js -do - echo "INFO: Compressing $js ..." >&2 - yui-compressor "$js" >> "$jsdir"/myplayer.min.js -done +echo "INFO: Compressing player.js ..." >&2 +yui-compressor player.js >> "$jsdir"/myplayer.min.js chmod 644 "$jsdir"/myplayer.min.js echo "INFO: Javascript source was minimized to $jsdir/myplayer.min.js" >&2 -rm -f ../js/myplayer.js +rm -f "$jsdir"/myplayer.js for js in \ ../mediaelement/build/mediaelement-and-player.js \ ../mediaelement-plugins/dist/playlist/playlist.js \ - id3-minimized.js \ + ../jsmediatags/dist/jsmediatags.min.js \ player.js do echo "INFO: Appending $js ..." >&2