Commit efdfe1b9 authored by Tom Knot's avatar Tom Knot

Added versioning hooks

parent 55591363
#!/bin/bash
FILENAME='version.txt'
exec 1>&2
REPONAME=`basename \`git rev-parse --show-toplevel\``
BRANCH=`git rev-parse --abbrev-ref HEAD`
SHORTHASH=`git log --pretty=format:'%h' -n 1`
REVCOUNT=`git log --oneline | wc -l`
LATESTTAG=`git describe --tags --abbrev=0`
VERSION="$REPONAME Branch:[$BRANCH] Release:$LATESTTAG PrecedingRevision:$REVCOUNT($SHORTHASH)"
echo $VERSION > $FILENAME
git update-index --assume-unchanged $FILENAME
\ No newline at end of file
#!/bin/bash
git update-index --assume-unchanged $FILENAME
\ No newline at end of file
#!/bin/bash
git update-index --assume-unchanged $FILENAME
\ No newline at end of file
#!/bin/bash
FILENAME='version.txt'
exec 1>&2
REPONAME=`basename \`git rev-parse --show-toplevel\``
BRANCH=`git rev-parse --abbrev-ref HEAD`
SHORTHASH=`git log --pretty=format:'%h' -n 1`
REVCOUNT=`git log --oneline | wc -l`
LATESTTAG=`git describe --tags --abbrev=0`
VERSION="$REPONAME Branch:[$BRANCH] Release:$LATESTTAG PrecedingRevision:$REVCOUNT($SHORTHASH)"
echo $VERSION > $FILENAME
git update-index --no-assume-unchanged $FILENAME
git add $FILENAME
\ No newline at end of file
#!/bin/bash
FILENAME='version.txt'
exec 1>&2
REPONAME=`basename \`git rev-parse --show-toplevel\``
BRANCH=`git rev-parse --abbrev-ref HEAD`
SHORTHASH=`git log --pretty=format:'%h' -n 1`
REVCOUNT=`git log --oneline | wc -l`
LATESTTAG=`git describe --tags --abbrev=0`
VERSION="$REPONAME Branch:[$BRANCH] Release:$LATESTTAG PrecedingRevision:$REVCOUNT($SHORTHASH)"
echo $VERSION > $FILENAME
git update-index --no-assume-unchanged $FILENAME
git add $FILENAME
\ No newline at end of file
neuron-python-lighting Branch:[master] Release: PrecedingRevision:3(5559136)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment