From eeda782f7f7fc0ac41f1ebca8ca38e81f9c2ead8 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 15 Feb 2012 17:06:07 +0100 Subject: [PATCH] Adjust lrde-upload.sh to handle branchnames with a slash. --- lrde-upload.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/lrde-upload.sh b/lrde-upload.sh index e0dec79d5..243a2c7c2 100755 --- a/lrde-upload.sh +++ b/lrde-upload.sh @@ -9,18 +9,16 @@ set -x # Buildbot will tell us the name of the branch being compiled using $1. rev=$1 -case $rev in - master) rev=;; - *) rev="-$rev";; -esac - # Retrieve the package version VERSION=`autoconf --trace='AC_INIT:$2'` -rm -rf /lrde/dload/spot/spot-snapshot$rev.tmp -cp -pR doc/spot.html /lrde/dload/spot/spot-snapshot$rev.tmp -chmod -R a+rX /lrde/dload/spot/spot-snapshot$rev.tmp -mv -f spot-$VERSION.tar.gz /lrde/dload/spot/spot-snapshot$rev.tar.gz -chmod a+rX /lrde/dload/spot/spot-snapshot$rev.tar.gz -rm -rf /lrde/dload/spot/spot-snapshot$rev.html -mv -f /lrde/dload/spot/spot-snapshot$rev.tmp /lrde/dload/spot/spot-snapshot$rev.html +DEST=/lrde/dload/spot/snapshots/ + +rm -rf $DEST/$rev.tmp +mkdir -p $DEST/$rev.tmp +cp -pR doc/spot.html $DEST/$rev.tmp +chmod -R a+rX $DEST/$rev.tmp +mv -f spot-$VERSION.tar.gz $DEST/$rev.tar.gz +chmod a+rX $DEST/$rev.tar.gz +rm -rf $DEST/$rev.html +mv -f $DEST/$rev.tmp $DEST/$rev.html