diff options
Diffstat (limited to 'STLinux')
-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 |