Fixed release scripts to work with new git conventions.

This commit is contained in:
Cas Cremers 2008-09-10 11:20:50 +02:00
parent e3268bb8e5
commit 97991116bd
3 changed files with 7 additions and 7 deletions

6
dist/build-arch-tag vendored
View File

@ -51,7 +51,7 @@ then
echo "Tag $TAG found." echo "Tag $TAG found."
else else
echo "Don't know tag $TAG, please select a revision, e.g. from below:" echo "Don't know tag $TAG, please select a revision, e.g. from below:"
git-tag -l git tag -l
echo $DESCR echo $DESCR
exit exit
fi fi
@ -65,7 +65,7 @@ DESTDIR=$CURDIR
TMPDIR="/tmp" TMPDIR="/tmp"
SRCNAME=$ARCHNAME-src SRCNAME=$ARCHNAME-src
# Hard coded connections, do not change this (hardcoded in git-archive # Hard coded connections, do not change this (hardcoded in git archive
# usage and archive creation) # usage and archive creation)
SRCDIR=$TMPDIR/$SRCNAME SRCDIR=$TMPDIR/$SRCNAME
BUILDDIR=$TMPDIR/$ARCHNAME BUILDDIR=$TMPDIR/$ARCHNAME
@ -81,7 +81,7 @@ rm -rf $SRCDIR
rm -rf $BUILDDIR rm -rf $BUILDDIR
# Change into the lower directory (main archive dir) # Change into the lower directory (main archive dir)
cd .. && git-archive --format=tar --prefix=$SRCNAME/ $TAG | (cd $TMPDIR && tar xf -) cd .. && git archive --format=tar --prefix=$SRCNAME/ $TAG | (cd $TMPDIR && tar xf -)
# Base of the package is the gui directory # Base of the package is the gui directory
mv $SRCDIR/gui $BUILDDIR mv $SRCDIR/gui $BUILDDIR

2
dist/releasescript vendored
View File

@ -26,7 +26,7 @@ then
echo " Usage: $0 <tag>" echo " Usage: $0 <tag>"
echo echo
echo "Don't know tag $TAG, please select one from below:" echo "Don't know tag $TAG, please select one from below:"
git-tag -l git tag -l
echo $DESCR echo $DESCR
exit exit
fi fi

6
dist/sourcescript vendored
View File

@ -32,7 +32,7 @@ then
echo "Tag $TAG found." echo "Tag $TAG found."
else else
echo "Don't know tag $TAG, please select a revision, e.g. from below:" echo "Don't know tag $TAG, please select a revision, e.g. from below:"
git-tag -l git tag -l
echo $DESCR echo $DESCR
exit exit
fi fi
@ -45,7 +45,7 @@ CURDIR=`pwd`
DESTDIR=$CURDIR DESTDIR=$CURDIR
TMPDIR="/tmp" TMPDIR="/tmp"
# Hard coded connections, do not change this (hardcoded in git-archive # Hard coded connections, do not change this (hardcoded in git archive
# usage and archive creation) # usage and archive creation)
BUILDDIR=$TMPDIR/$ARCHNAME BUILDDIR=$TMPDIR/$ARCHNAME
@ -53,7 +53,7 @@ BUILDDIR=$TMPDIR/$ARCHNAME
rm -rf $BUILDDIR rm -rf $BUILDDIR
# Change into the lower directory (main archive dir) # Change into the lower directory (main archive dir)
cd .. && git-archive --format=tar --prefix=$ARCHNAME/ $TAG | (cd $TMPDIR && tar xf -) cd .. && git archive --format=tar --prefix=$ARCHNAME/ $TAG | (cd $TMPDIR && tar xf -)
# Prepare tag for gui version # Prepare tag for gui version
echo "SCYTHER_GUI_VERSION = \"$TAG\"" >$BUILDDIR/gui/Gui/Version.py echo "SCYTHER_GUI_VERSION = \"$TAG\"" >$BUILDDIR/gui/Gui/Version.py