-
Notifications
You must be signed in to change notification settings - Fork 3
/
deploy.sh
executable file
·36 lines (25 loc) · 907 Bytes
/
deploy.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
#!/bin/bash
if [ ! -d inst_EXE ]; then
echo "You must first deploy the Windows version"
exit 1
fi
if [ -e releases/gmail-backup-$1 ]; then
rm -rf releases/gmail-backup-$1
fi
if [ -e releases/gmail-backup-$1-linux ]; then
rm -rf releases/gmail-backup-$1-linux
fi
mv inst_EXE releases/gmail-backup-$1
mv releases/gmail-backup-$1/gmail-backup-installer.exe releases/gmail-backup-$1/gmail-backup-$1.exe
./setup.sh
mv dist_SH releases/gmail-backup-$1-linux
if [ -e ~/tmp/gmail-backup-$1.zip ]; then
rm ~/tmp/gmail-backup-$1.zip
fi
if [ -e ~/tmp/gmail-backup-$1-linux.zip ]; then
rm ~/tmp/gmail-backup-$1-linux.zip
fi
svn copy . svn+ssh://uk506p01-kky.fav.zcu.cz/svn/projects/gmail-backup/branches/gmail-backup-$1 -m "Deployed version $1 of GMail Backup"
cd releases
cp gmail-backup-$1/gmail-backup-$1.exe ~/tmp/
zip -9r ~/tmp/gmail-backup-$1-linux.zip gmail-backup-$1-linux