Releasescripts now also allow for building arbitrary description tags.
In a next pass, maybe we will allow for releasing *any* valid git revision.
This commit is contained in:
parent
dd57481991
commit
ccd90dccdb
6
dist/build-arch-tag
vendored
6
dist/build-arch-tag
vendored
@ -18,6 +18,9 @@
|
|||||||
# and this is used to construct a archive with the binary of the
|
# and this is used to construct a archive with the binary of the
|
||||||
# selected architecture.
|
# selected architecture.
|
||||||
|
|
||||||
|
# Current
|
||||||
|
DESCR=`git describe --tags`
|
||||||
|
|
||||||
if [ "x$1" = "x" -o "x$2" = "x" ]
|
if [ "x$1" = "x" -o "x$2" = "x" ]
|
||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
@ -43,12 +46,13 @@ fi
|
|||||||
|
|
||||||
TAG=$2
|
TAG=$2
|
||||||
FOUND=`git-tag -l $TAG`
|
FOUND=`git-tag -l $TAG`
|
||||||
if [ "x$TAG" = "x$FOUND" ]
|
if [ "x$TAG" = "x$FOUND" -o "x$TAG" = "x$DESCR" ]
|
||||||
then
|
then
|
||||||
echo "Tag $TAG found."
|
echo "Tag $TAG found."
|
||||||
else
|
else
|
||||||
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
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
6
dist/releasescript
vendored
6
dist/releasescript
vendored
@ -2,12 +2,15 @@
|
|||||||
|
|
||||||
BUILDER=./build-arch-tag
|
BUILDER=./build-arch-tag
|
||||||
|
|
||||||
|
# Current
|
||||||
|
DESCR=`git describe --tags`
|
||||||
|
|
||||||
# Check whether the tag exists
|
# Check whether the tag exists
|
||||||
TAG=$1
|
TAG=$1
|
||||||
if [ "x$TAG" != "x" ]
|
if [ "x$TAG" != "x" ]
|
||||||
then
|
then
|
||||||
FOUND=`git-tag -l $TAG`
|
FOUND=`git-tag -l $TAG`
|
||||||
if [ "x$TAG" = "x$FOUND" ]
|
if [ "x$TAG" = "x$FOUND" -o "x$TAG" = "x$DESCR" ]
|
||||||
then
|
then
|
||||||
echo "Tag $TAG found."
|
echo "Tag $TAG found."
|
||||||
else
|
else
|
||||||
@ -24,6 +27,7 @@ then
|
|||||||
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
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user