Cleanup versioning script
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
MAJOR=0.14
|
|
||||||
DIRTY=""
|
DIRTY=""
|
||||||
|
|
||||||
if git status 1>/dev/null 2>/dev/null
|
if git status 1>/dev/null 2>/dev/null
|
||||||
@@ -31,7 +30,7 @@ then
|
|||||||
DIRTY="-dirty"
|
DIRTY="-dirty"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
VERSION=$(git describe --exact-match 2>/dev/null || echo "$MAJOR-git$(git show -s --pretty=format:%ci | cut -d ' ' -f 1 | tr -d '-').$(git show -s --pretty=format:%h)")$DIRTY
|
VERSION=$(git describe 2>/dev/null)$DIRTY
|
||||||
else
|
else
|
||||||
SCRIPT_DIR=$(dirname "$0")
|
SCRIPT_DIR=$(dirname "$0")
|
||||||
VERSION=$(head -n 1 "${SCRIPT_DIR}/ChangeLog" | cut -d ' ' -f 2)
|
VERSION=$(head -n 1 "${SCRIPT_DIR}/ChangeLog" | cut -d ' ' -f 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user