# HG changeset patch # User souliane # Date 1449063668 -3600 # Node ID 03c005ffeb03064818f504eacef17a3b7451bb53 # Parent bf0fab14112fab52337e2ff5c901cbc6011f9267 add script to create release packages and put them on the FTP diff -r bf0fab14112f -r 03c005ffeb03 scripts/release/update_packages.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/release/update_packages.sh Wed Dec 02 14:41:08 2015 +0100 @@ -0,0 +1,26 @@ +#!/bin/bash + +# This script creates the new packages and send them to the FTP. +# It does NOT update the symlinks on the FTP: do it by hand! + + +if [ $# -lt 1 ]; then + echo "Usage: `basename $0` " + exit 1 +fi + +WORKSPACE=~/workspace +VERSION=$1 + +for NAME in sat sat_media urwid_satext sat_pubsub libervia; do + cd $WORKSPACE/$NAME + hg pull -u + FILE=$NAME-$VERSION.tar.bz2 + hg archive -t tbz2 $FILE -X ".hg*" + if [[ $NAME = "urwid_satext" ]]; then + DIR="urwid-satext" + else + DIR=$NAME + fi + scp -P 2222 $FILE souliane@cete.goffi.org:/srv/ftp/$DIR/ +done \ No newline at end of file