forked from jvogelsb/locomote-video-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_player
executable file
·24 lines (19 loc) · 946 Bytes
/
build_player
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
npm install
gulp
description=$(git describe --tags --long)
version=${description%-*}
printf "\nDescription: %s\n" $description
printf "Version: %s\n" $version
swfname="locomote_player-$version.swf"
cp -f dist/Player.swf ../CustomerWebApp/app/bin/$swfname
printf "\nCopied dist/Player.swf to ../CustomerWebApp/app/bin/$swfname.\n"
jsname="locomote_player-$version.min.js"
cp -f dist/locomote.min.js ../CustomerWebApp/app/scripts/vendor/$jsname
printf "Copied dist/locomote.min.js to ../CustomerWebApp/app/scripts/vendor/$jsname.\n\n"
swfname="Player.swf"
cp -f dist/Player.swf ~/Development/ngTutorial/angular-phonecat/app/$swfname
printf "\nCopied dist/Player.swf to ~/Development/ngTutorial/angular-phonecat/app/$swfname.\n"
jsname="locomote.min.js"
cp -f dist/locomote.min.js ~/Development/ngTutorial/angular-phonecat/app/$jsname
printf "Copied dist/locomote.min.js to ~/Development/ngTutorial/angular-phonecat/app/$jsname.\n\n"