Build and release any git revision.
This commit is contained in:
parent
ccd90dccdb
commit
f2d4b56c11
8
dist/build-arch-tag
vendored
8
dist/build-arch-tag
vendored
@ -29,7 +29,7 @@ then
|
|||||||
echo " Usage: $0 <arch> <tag>"
|
echo " Usage: $0 <arch> <tag>"
|
||||||
echo
|
echo
|
||||||
echo "where <arch> is one of linux,w32,mac"
|
echo "where <arch> is one of linux,w32,mac"
|
||||||
echo "and <tag> is any tag in the current git repository."
|
echo "and <tag> is revision tag in the current git repository."
|
||||||
echo
|
echo
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@ -45,12 +45,12 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
TAG=$2
|
TAG=$2
|
||||||
FOUND=`git-tag -l $TAG`
|
FOUND=`git rev-parse $TAG`
|
||||||
if [ "x$TAG" = "x$FOUND" -o "x$TAG" = "x$DESCR" ]
|
if [ "$?" -eq 0 ]
|
||||||
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 a revision, e.g. from below:"
|
||||||
git-tag -l
|
git-tag -l
|
||||||
echo $DESCR
|
echo $DESCR
|
||||||
exit
|
exit
|
||||||
|
3
dist/releasescript
vendored
3
dist/releasescript
vendored
@ -9,8 +9,7 @@ DESCR=`git describe --tags`
|
|||||||
TAG=$1
|
TAG=$1
|
||||||
if [ "x$TAG" != "x" ]
|
if [ "x$TAG" != "x" ]
|
||||||
then
|
then
|
||||||
FOUND=`git-tag -l $TAG`
|
if [ "$?" -eq 0 ]
|
||||||
if [ "x$TAG" = "x$FOUND" -o "x$TAG" = "x$DESCR" ]
|
|
||||||
then
|
then
|
||||||
echo "Tag $TAG found."
|
echo "Tag $TAG found."
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user