-
Notifications
You must be signed in to change notification settings - Fork 5
/
reuploadpackages.sh
executable file
·62 lines (51 loc) · 1.34 KB
/
reuploadpackages.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
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
TARGZFILES=`ls *.dsc`
PLATFORM="squeeze wheezy"
ARCHTECT="amd64 i386"
BRANCHES="v8-stable v8-devel"
echo "------------------------------------------"
echo "--- Re Upload existing debs to archive ---"
echo "------------------------------------------"
echo "Select Debian DIST:"
select szPlatform in $PLATFORM
do
break;
done
echo "Select CPU Platform:"
select szArch in $ARCHTECT "All"
do
case $szArch in "All")
szArch=$ARCHTECT;
esac
break;
done
echo "Select RSyslog BRANCH:"
select szBranch in $BRANCHES
do
echo "Making Packages for '$szDscFile' ($szBranch) on '$szPlatform'/'$szArch' "
break;
done
# Helper variable
szAddArch="";
if [ $szArchitect = "i386" ]; then
szAddArch="-i386";
fi
echo "Select DSC Filebasename:"
select szDscFile in `sudo ls /root/pbuilder/$szPlatform$szAddArch\_result/*.dsc`
do
break;
done
# Loop through architects
for szArchitect in $szArch;
do
# Helper variable
szAddArch="";
if [ $szArchitect = "i386" ]; then
szAddArch="-i386";
fi
# Set Basename!
szDscFileBase=`basename $szDscFile .dsc`
#pbuilder-dist precise create
APPENDSUFFIX="_$szArchitect.changes"
sudo dput $szBranch /root/pbuilder/$szPlatform$szAddArch\_result/$szDscFileBase$APPENDSUFFIX
done;