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
|
||||
|
||||
|
||||
if [ $# -ne 1 ]
|
||||
then
|
||||
echo "Usage: `basename $0` release"
|
||||
@ -8,6 +9,9 @@ then
|
||||
fi
|
||||
version=$1
|
||||
|
||||
#Create tag
|
||||
git tag -a release-${version}
|
||||
|
||||
#check for tag existence
|
||||
git describe release-$1 2>&1 >/dev/null ||
|
||||
{
|
||||
@ -15,4 +19,5 @@ git describe release-$1 2>&1 >/dev/null ||
|
||||
exit 1
|
||||
}
|
||||
|
||||
./git-version.sh
|
||||
git archive --format=tar --prefix autojump_${version}/ release-${version} | gzip > autojump_${version}.tar.gz
|
||||
|
Loading…
Reference in New Issue
Block a user