Created
November 28, 2014 10:34
-
-
Save menski/6f54a35a733ba5188cd4 to your computer and use it in GitHub Desktop.
Script to update tags of camunda get started repos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DELIM=${1:-:} | |
git log --format=oneline --reverse | while read line; do | |
hash=$(echo "$line" | cut -d\ -f 1) | |
name=$(echo "$line" | cut -d\ -f 2- | cut -d"$DELIM" -f 1 | tr " " "-") | |
msg=$(echo "$line" | cut -d\ -f 2- | cut -d"$DELIM" -f 2- | sed 's/^\s*//g') | |
git tag -f -a "$name" -m "$msg" $hash | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment