forked from stadler/pyrocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_source_package.sh
executable file
·50 lines (42 loc) · 1.23 KB
/
make_source_package.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
#!/bin/bash
PROGNAME=pyrocket
VERSION=0.8
RELEASE_NAME=$PROGNAME-$VERSION
DISTRIBUTABLE_NAME=${PROGNAME}_$VERSION
cd src
dch -m
cd ..
svn export src $RELEASE_NAME.orig
cd $RELEASE_NAME.orig
rm -r icons
rm -r debian
cd ..
svn export src $RELEASE_NAME
cd $RELEASE_NAME
rm -r icons
debuild -S -sa
cd ..
rm -r $RELEASE_NAME
echo -n "Do you want to upload the orig.tar.gz to kostmo.ath.cx? [Y/n] "
read character
case $character in
[Yy] | "" ) echo "You responded in the affirmative."
scp $DISTRIBUTABLE_NAME.orig.tar.gz kostmo.ath.cx:/Library/WebServer/Documents/software/pyrocket/$RELEASE_NAME.tar.gz
;;
* ) echo "Fine, then."
esac
echo "Alternatively, I will upload a new release to Google Code."
echo -n "Do you want me to? [Y/n]: "
read character
case $character in
[Yy] | "" ) echo "You responded in the affirmative."
wget http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py
chmod a+x googlecode_upload.py
./googlecode_upload.py -s "source code" -p $PROGNAME $DISTRIBUTABLE_NAME.orig.tar.gz
rm googlecode_upload.py
* ) echo "Fine, then."
esac
CHANGES_FILE=${DISTRIBUTABLE_NAME}_source.changes
echo "You might want to run 'dput my-ppa $CHANGES_FILE' next"
echo "-or-"
echo "run 'dput revu $CHANGES_FILE'"