From 9c63dfa5e3b46e738fc653828393a1c3317a0836 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 6 Feb 2009 14:32:43 +0100 Subject: [STLinux] reset tags : supports optionnal TAGPREFIX parameter --- STLinux/stlinux_reset_tags.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/STLinux/stlinux_reset_tags.sh b/STLinux/stlinux_reset_tags.sh index 0952d6d..e30535a 100755 --- a/STLinux/stlinux_reset_tags.sh +++ b/STLinux/stlinux_reset_tags.sh @@ -1,17 +1,20 @@ #!/bin/zsh FILE=$1 +TAGPREFIX=$2 usage() { cat << EOF -usage: $0:t " +usage: $0:t []" Where FILE.spec is a .spec file with list of patches and of kernel releases To generate this FILE.spec, you should take a look to stlinux_generate_spec_file.sh + + TAGPREFIX should be used to prefix the tags EOF } -if [ $# -ne 1 -o ! -f $FILE ] +if [ $# -lt 1 -o $# -gt 2 -o ! -f $FILE ] then usage exit 42 # Yes, 42. @@ -31,6 +34,6 @@ do cut -c1-40 ) echo "#$tag -- $(git-log --grep="$release" | grep "$release")" - git-tag $tag $commit + git-tag $TAGPREFIX$tag $commit done -- cgit v1.2.3