mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
update make_release to use git-version
This commit is contained in:
parent
6cc6728045
commit
b6eb9fb81b
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
if [ $# -ne 1 ]
|
if [ $# -ne 1 ]
|
||||||
then
|
then
|
||||||
echo "Usage: `basename $0` release"
|
echo "Usage: `basename $0` release"
|
||||||
@ -8,6 +9,9 @@ then
|
|||||||
fi
|
fi
|
||||||
version=$1
|
version=$1
|
||||||
|
|
||||||
|
#Create tag
|
||||||
|
git tag -a release-${version}
|
||||||
|
|
||||||
#check for tag existence
|
#check for tag existence
|
||||||
git describe release-$1 2>&1 >/dev/null ||
|
git describe release-$1 2>&1 >/dev/null ||
|
||||||
{
|
{
|
||||||
@ -15,4 +19,5 @@ git describe release-$1 2>&1 >/dev/null ||
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
./git-version.sh
|
||||||
git archive --format=tar --prefix autojump_${version}/ release-${version} | gzip > autojump_${version}.tar.gz
|
git archive --format=tar --prefix autojump_${version}/ release-${version} | gzip > autojump_${version}.tar.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user