diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2009-02-06 14:32:43 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2009-02-06 14:32:54 +0100 |
commit | 9c63dfa5e3b46e738fc653828393a1c3317a0836 (patch) | |
tree | 73dc85c4648a5b70751273a95dd2619d42a7dced | |
parent | ea5435268132b2fe066b18bd41f200bb0c8fbfa4 (diff) |
[STLinux] reset tags : supports optionnal TAGPREFIX parameter
-rwxr-xr-x | STLinux/stlinux_reset_tags.sh | 9 |
1 files 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 <FILE.spec>" +usage: $0:t <FILE.spec> [<TAGPREFIX>]" 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 |