Commit 09ff5d7b52d059a7fab09427d8e6d12319a53804
duilder updates (error out if head is not a tag
Author: Catalin(ux) M. BOIE
Author date (UTC): 2015-07-14 20:27
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2015-07-14 20:27
Parent(s): c28468b1cf0488f8f98b04aeb6ba26429ee91807
Signing key:
Tree: baebdc87ab6d4affc13b3f06d81aaf0547cf0e71
File |
Lines added |
Lines deleted |
duilder |
2 |
2 |
File duilder changed (mode: 100755) (index d8bce35..06c624a) |
... |
... |
function duilder_git() |
61 |
61 |
fi |
fi |
62 |
62 |
|
|
63 |
63 |
echo "[*] Testing if a tag is present for HEAD..." |
echo "[*] Testing if a tag is present for HEAD..." |
64 |
|
D=`git describe | egrep -- '-g[0-9a-fA-F]*$'` |
|
65 |
|
if [ "${D}" != "" ]; then |
|
|
64 |
|
D=`git describe | sed -e 's/^.*-g[0-9a-fA-F]*$//'` |
|
65 |
|
if [ "${D}" = "" ]; then |
66 |
66 |
echo "No annotated tag preset for HEAD! Please add one!" |
echo "No annotated tag preset for HEAD! Please add one!" |
67 |
67 |
exit 1 |
exit 1 |
68 |
68 |
fi |
fi |