diff options
-rwxr-xr-x | version.sh | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1,10 +1,5 @@ #!/bin/bash -VERSION=`git describe --tags` -BRANCH=$(git branch | grep '^*' | sed 's/^\* //') - -if [[ $BRANCH != "master" ]] && [[ $BRANCH != "(no branch)" ]]; then - VERSION="$VERSION-$BRANCH" -fi +VERSION=`git describe` echo -e "#ifndef __VERSION_H__\r\n#define __VERSION_H__\r\n\r\n#define MTDOT_BOX_VERSION \"$VERSION\"\r\n\r\n#endif" > dotbox_version.h |