comparison scripts/release/update_packages.sh @ 71:03c005ffeb03

add script to create release packages and put them on the FTP
author souliane <souliane@mailoo.org>
date Wed, 02 Dec 2015 14:41:08 +0100
parents
children
comparison
equal deleted inserted replaced
70:bf0fab14112f 71:03c005ffeb03
1 #!/bin/bash
2
3 # This script creates the new packages and send them to the FTP.
4 # It does NOT update the symlinks on the FTP: do it by hand!
5
6
7 if [ $# -lt 1 ]; then
8 echo "Usage: `basename $0` <version e.g. 0.6.0>"
9 exit 1
10 fi
11
12 WORKSPACE=~/workspace
13 VERSION=$1
14
15 for NAME in sat sat_media urwid_satext sat_pubsub libervia; do
16 cd $WORKSPACE/$NAME
17 hg pull -u
18 FILE=$NAME-$VERSION.tar.bz2
19 hg archive -t tbz2 $FILE -X ".hg*"
20 if [[ $NAME = "urwid_satext" ]]; then
21 DIR="urwid-satext"
22 else
23 DIR=$NAME
24 fi
25 scp -P 2222 $FILE souliane@cete.goffi.org:/srv/ftp/$DIR/
26 done