fix problem with building uncompressed source
This commit is contained in:
parent
e022080692
commit
c264564bb8
16
src/build.sh
16
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
|
||||
|
Loading…
Reference in New Issue
Block a user