[projects/rc-scripts] update make-tag.sh to git
draenog
draenog at pld-linux.org
Sat Nov 2 23:48:46 CET 2013
commit 04d62a7e4acbf455ac5da61bae2870cad268055b
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Sat Nov 2 23:48:06 2013 +0100
update make-tag.sh to git
make-tag.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/make-tag.sh b/make-tag.sh
index 559f404..b93aa2c 100755
--- a/make-tag.sh
+++ b/make-tag.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-url=$(svn info | awk '/^URL:/{gsub("/trunk$", "", $2); print $2}')
-rev=$(svn info | awk '/^Revision:/{print $2}')
+set -e
+rev=$(git rev-parse HEAD)
version=$(awk -F, '/AC_INIT/{print $2}' configure.ac | tr -d '[ ]')
tag="$version"
@@ -10,4 +10,5 @@ echo ""
echo "Press ENTER to continue..."
read a
-svn cp $url/trunk $url/tags/$tag
+git tag -a "$tag" $rev
+git push --dry-run origin "refs/tags/$tag"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/04d62a7e4acbf455ac5da61bae2870cad268055b
More information about the pld-cvs-commit
mailing list