forked from rsyslog/rsyslog-pkg-ubuntu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upload.sh
executable file
·28 lines (23 loc) · 859 Bytes
/
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
!#/bin/sh
BRANCHES="v7-stable v7-devel v8-devel"
PLATFORM="precise quantal saucy"
echo "-------------------------------------"
echo "--- Upload Packages ---"
echo "-------------------------------------"
echo "Upload into which branch?"
select szBranch in $BRANCHES
do
echo "Uploading into Branch '$szBranch'
"
break;
done
# Sign Release first!
# Loop through PLATFORMS
for szPlattform in $PLATFORM;
do
rm /home/al/archive/$szBranch/$szPlattform/Release.gpg
gpg -bao /home/al/archive/$szBranch/$szPlattform/Release.gpg /home/al/archive/$szBranch/$szPlattform/Release
done;
# upload to server
# scp -r /home/al/archive/$szBranch/* makerpm@vserver.adiscon.com:/home/makerpm/ubunturepo/$szBranch/
rsync -au -e ssh --progress /home/al/archive/$szBranch/* makerpm@vserver.adiscon.com:/home/makerpm/ubunturepo/$szBranch/