Adjust lrde-upload.sh to handle branchnames with a slash.
This commit is contained in:
parent
62914059f7
commit
eeda782f7f
1 changed files with 10 additions and 12 deletions
|
|
@ -9,18 +9,16 @@ set -x
|
||||||
# Buildbot will tell us the name of the branch being compiled using $1.
|
# Buildbot will tell us the name of the branch being compiled using $1.
|
||||||
rev=$1
|
rev=$1
|
||||||
|
|
||||||
case $rev in
|
|
||||||
master) rev=;;
|
|
||||||
*) rev="-$rev";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Retrieve the package version
|
# Retrieve the package version
|
||||||
VERSION=`autoconf --trace='AC_INIT:$2'`
|
VERSION=`autoconf --trace='AC_INIT:$2'`
|
||||||
|
|
||||||
rm -rf /lrde/dload/spot/spot-snapshot$rev.tmp
|
DEST=/lrde/dload/spot/snapshots/
|
||||||
cp -pR doc/spot.html /lrde/dload/spot/spot-snapshot$rev.tmp
|
|
||||||
chmod -R a+rX /lrde/dload/spot/spot-snapshot$rev.tmp
|
rm -rf $DEST/$rev.tmp
|
||||||
mv -f spot-$VERSION.tar.gz /lrde/dload/spot/spot-snapshot$rev.tar.gz
|
mkdir -p $DEST/$rev.tmp
|
||||||
chmod a+rX /lrde/dload/spot/spot-snapshot$rev.tar.gz
|
cp -pR doc/spot.html $DEST/$rev.tmp
|
||||||
rm -rf /lrde/dload/spot/spot-snapshot$rev.html
|
chmod -R a+rX $DEST/$rev.tmp
|
||||||
mv -f /lrde/dload/spot/spot-snapshot$rev.tmp /lrde/dload/spot/spot-snapshot$rev.html
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue