-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathppa_upload.sh
More file actions
executable file
·50 lines (45 loc) · 1.38 KB
/
ppa_upload.sh
File metadata and controls
executable file
·50 lines (45 loc) · 1.38 KB
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/sh
# build a debian sourcepackage and upload it to the launchpad ppa
rm -rf build
rm -rf build-*
rm *-stamp
rm -rf racs/qt/build
rm -rf racs/uc/build
rm -rf racs/uc/.dep
rm racs/uc/*.e*
rm racs/uc/*.hex
rm racs/uc/*.lst
rm racs/uc/*.map
rm racs/uc/*.o
rm racs/uc/*.cmake
rm -rf ros/arexx_robotarm/build
rm -rf ros/arexx_robotarm/bin
rm -rf ros/uc_arm/build
rm -rf debian/build*
rm -rf debian/tmp
rm -rf debian/arexx-robotarm-examples/
rm -rf debian/arexx-robotarm-racsqt/
rm -rf debian/arexx-robotarm-examples/
rm -rf debian/arexx-robot-arm/
rm -rf debian/arexx-robotarm-ros/
rm debian/*.log
rm debian/*.debhelper
rm debian/*.substvars
rm debian/files
rm debian/substvars
rm *.zip
rm *.pdf
rm -rf RobotLoader_20100712/
rm -rf RobotArm_Examples*
rm -rf RACS-*
rm -rf RAC-MINI.hex
wget http://www.arexx.com/rp6/downloads/RobotLoader_20120223.zip
wget http://arexx.com/robot_arm/downloads/robot_arm_mini_manual_de.zip
wget http://arexx.com/robot_arm/downloads/robot_arm_pro_manual_de.zip
:${VERSIONNBR:=$(parsechangelog | grep Version | sed -e "s/Version: //g" -e "s/\\~.*//g")}
for DISTRIBUTION in quantal precise
do
sed -i -e "s/maverick/${DISTRIBUTION}/g" -e "s/quantal/${DISTRIBUTION}/g" -e "s/oneiric/${DISTRIBUTION}/g" -e "s/precise/${DISTRIBUTION}/g" debian/changelog
debuild -k${GPGKEY} -S
dput ppa:richi-paraeasy/ppa ../arexx-robot-arm_${VERSIONNBR}~${DISTRIBUTION}_source.changes
done