File: makeupload

package info (click to toggle)
xsnow 1:3.1.1-1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 2,524 kB
  • sloc: ansic: 9,248; xml: 5,034; sh: 1,659; cpp: 118; pascal: 105; makefile: 70
file content (34 lines) | stat: -rwxr-xr-x 1,103 bytes parent folder | download
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
#!/bin/bash
# creates directory for upload
# version numbers for upstream releases:
newversion=`./getversion`
#oldversion=2.0.19
oldversion=3.0.7
curdir=`pwd`
dist=sid
tar=$curdir/../versions/xsnow-$newversion.tar.gz
uploaddir=$curdir/../upload/upload-$newversion
./maketar || exit 1
echo removing $uploaddir ...
mkdir -p $uploaddir
sudo chown -R willem.willem $uploaddir
rm -rf $uploaddir
mkdir -p $uploaddir
cd $uploaddir || exit 1
cp -v $tar . || exit 1
#apt source xsnow || exit 1
cp -r $curdir/../xsnow-debian/debian . || exit 1
sudo bash `which pbuilder` --execute --bindmounts $PWD \
   --configfile ~root/pbuilderrc.$dist  \
   -- $curdir/pbuilderscript $PWD $oldversion $newversion|| exit 1
sudo chown -R willem.willem $uploaddir
rm -r xsnow-$oldversion
rm    xsnow_$oldversion-*.debian.tar.[gx]z
rm    xsnow_$oldversion-*.dsc
rm    xsnow_$oldversion.orig.tar.gz
rm -r xsnow-$newversion
rm -r xsnow-$newversion.orig
debsign -k8D232D69D0889859B1E7732ADC4874F4A7D3496F *.changes
echo to check: dput -s mentors $uploaddir/*.changes
echo to upload: dput mentors $uploaddir/*.changes
echo "$0 done"