Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bc49f6
commit e42d541
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# ############################################################################## | ||
# | ||
# Builds lompsa TRADER demo web edition and publishes the result on lompsa.com | ||
# | ||
# ############################################################################## | ||
|
||
echo "start building mofowallet" | ||
VERSION=`cat VERSION` | ||
MODE_JS_FILE='app/mode.js' | ||
MODE_JS=$(cat <<'END_HEREDOC' | ||
/* This file is autogenerated by the build system */ | ||
var VERSION='#VERSION#'; | ||
var ENABLE_DUAL_ENGINES=false; | ||
var IS_TEST_NET=false; | ||
var FORCE_LOCAL_HOST=false; | ||
var TRADE_UI_ONLY=false; | ||
var DEBUG=false; | ||
var BUILD_TIMESTAMP=#TIMESTAMP#; | ||
var WALLET_NAME='Lompsa.com'; | ||
END_HEREDOC | ||
) | ||
cat > $MODE_JS_FILE <<EOF | ||
$MODE_JS | ||
EOF | ||
orig=#VERSION# | ||
sed -i "s/${orig}/${VERSION}/g" $MODE_JS_FILE | ||
orig=#TIMESTAMP# | ||
timestamp=$(date +%s) | ||
sed -i "s/${orig}/${timestamp}/g" $MODE_JS_FILE | ||
|
||
grunt build | ||
echo "successfully built mofowallet" | ||
|
||
# copy over all code to lompsa server | ||
#mv dist/index.html dist/index.htm | ||
DATE=`date` | ||
echo "<!--$DATE-->" >> dist/index.html | ||
scp -r -P 33 dist/* root@78.46.176.8:/var/www/lompsa/docs |