-
Notifications
You must be signed in to change notification settings - Fork 0
/
release-all
34 lines (34 loc) · 1.33 KB
/
release-all
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
set -e
echo "(scratchbox needs to be started)"
#if [ ! -f /home/dannym/scratchpost.org/www/online/common ]
#then
# scratchpost-mount
# mv ~/scratchpost.org/www/online/software/5D/5d_* ~/scratchpost.org/www/online/software/5D/attic/
# fusermount -u ~/scratchpost.org/www/online
#fi
cd ~/source/playground/trunk/5D
jstar debian/changelog
version="$(head -1 debian/changelog |sed 's;[^(]*(\([^)]*\)).*$;\1;')"
cd ~/scratchpost.org/www/mirror/software/5D
for s in 5d-core_* 5d-gui_* 5d-tui_*
do
if [ "$s" != "5d-core_*" -a "$s" != "5d-tui_*" -a "$s" != "5d-gui_*" -a "${s#5d_${version}}" = "$s" ]
then
echo "$s" >> ~/scratchpost.org/www/mirror/software/5D/.webhidden
fi
done
cd ~/source/playground/trunk/5D
dpkg-buildpackage -rfakeroot
maemo-build FREMANTLE_ARMEL
maemo-build KINDLE_DX
cd ~/mount/scratchbox-home/source
cp 5d-core_"${version}"* ~/scratchpost.org/www/mirror/software/5D/
cp 5d-gui_"${version}"* ~/scratchpost.org/www/mirror/software/5D/
cp 5d-tui_"${version}"* ~/scratchpost.org/www/mirror/software/5D/
cp update_5D_"${version}"_dxg_install.bin ~/scratchpost.org/www/mirror/software/5D/
cd ~/source/playground/trunk
cp 5d-core_"${version}"* ~/scratchpost.org/www/mirror/software/5D/
cp 5d-gui_"${version}"* ~/scratchpost.org/www/mirror/software/5D/
cp 5d-tui_"${version}"* ~/scratchpost.org/www/mirror/software/5D/
#scratchpost-push