forked from knowhow/F18_knowhow
-
Notifications
You must be signed in to change notification settings - Fork 1
/
upload.sh
executable file
·49 lines (32 loc) · 1.04 KB
/
upload.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
CURRENT_DIR=`pwd`
export BUILD_ARCH=x64
if [ -d tmp ] ; then
rm -rf tmp
fi
#if [ ! -f $HOME/.bintray_owner ]; then
# echo potreban fajl $HOME/.bintray_owner
# exit 1
#fi
#if [ ! -f $HOME/.bintray_api_key ]; then
# echo potreban fajl $HOME/.bintray_api_key
# exit 1
#fi
#export BINTRAY_OWNER=`cat $HOME/.bintray_owner`
#export BINTRAY_API_KEY=`cat $HOME/.bintray_api_key`
export HB_ROOT=$HOME/harbour
echo "$HB_ROOT, bintray: $BINTRAY_OWNER, $BINTRAY_API_KEY"
#read
#./build_zip.sh
#./upload_bintray_linux.sh
BUILD_ARCH=x64
F18_PACKAGE=F18-linux-$BUILD_ARCH
#F18_VERSION=${BUILD_BUILDNUMBER}
F18_VERSION=`echo "const json=require('./package.json') ; console.log(json.f18)" | node`
FILE=${F18_PACKAGE}_${F18_VERSION}.zip
ls -lh $FILE
echo "upload: ${F18_PACKAGE} / ${FILE} [email protected]:/var/www/html/F18/, [email protected]:/var/www/html/F18/"
rsync -avz $FILE [email protected]:/var/www/html/F18/
rsync -avz $FILE [email protected]:/var/www/html/F18/
echo delete $CURRENT_DIR/tmp ...
rm -rf $CURRENT_DIR/tmp