mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[internal] added post-commit hook for autotagging
This commit is contained in:
parent
1b20310395
commit
651cdcaa65
3 changed files with 21 additions and 11 deletions
|
@ -18,9 +18,11 @@ TAGVER=`echo $VER`
|
|||
# of a .amend file in the current directory will do
|
||||
if [ -f ./.amend ]; then
|
||||
TAGVER=`expr $TAGVER - 1`
|
||||
git tag -d "#$TAGVER"
|
||||
rm ./.amend;
|
||||
fi
|
||||
echo "setting nano to $TAGVER"
|
||||
echo $TAGVER > .tag
|
||||
|
||||
cat > cmd.sed <<\_EOF
|
||||
s/^[ \t]*FILEVERSION[ \t]*\(.*\),\(.*\),\(.*\),.*/ FILEVERSION \1,\2,\3,@@TAGVER@@/
|
||||
|
@ -47,8 +49,3 @@ git add ./rufus.rc
|
|||
#mv _bm.sh~ _bm.sh
|
||||
|
||||
rm cmd.sed
|
||||
|
||||
# TODO?: use the following in post-commit to setup a tag every 10 commits
|
||||
#if [ "${TAGVER:${#TAGVER}-1:1}" == '0' ]; then
|
||||
# echo " commit #${TAGVER:${#TAGVER}-1:1}";
|
||||
#fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue