-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmofowallet-test.sh
28 lines (24 loc) · 947 Bytes
/
mofowallet-test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ##############################################################################
#
# Builds mofowallet web TEST edition and publishes the result on mofowallet.com
#
# ##############################################################################
echo "start building mofowallet"
# grunt build
echo "successfully built mofowallet"
# copy over all code to git/mofo
echo "copy mofo files to jekyll repo"
MOFO_FILES="dist/fonts dist/images dist/partials dist/plugins dist/scripts dist/styles dist/favicon.ico dist/i18n dist/amstockchart dist/mode.js dist/data.csv"
mkdir -p ~/git/mofo/FIMTEST
cp -r -p $MOFO_FILES ~/git/mofo/FIMTEST
cp dist/index.html ~/git/mofo/FIMTEST/launch.html
DATE=`date`
echo "<!--$DATE-->" >> ~/git/mofo/FIMTEST/launch.html
echo "successfully copied mofo files to jekyll repo"
cd ~/git/mofo
echo "start jekyll build"
bundle exec jekyll build
echo "done"
git add --all
git commit -am 'Update mofo'
git push origin gh-pages