]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - rfkill/version.sh
6 if test "x$1" = x--suffix
; then
13 if test "x$SUFFIX" != 'x'; then
15 elif head=`git rev-parse --verify HEAD 2>/dev/null`; then
16 git update-index
--refresh --unmerged > /dev
/null
17 descr
=$
(git describe
2>/dev
/null ||
echo "v$VERSION")
19 # on git builds check that the version number above
21 [ "${descr%%-*}" = "v$VERSION" ] ||
exit 2
23 echo -n 'const char rfkill_version[] = "' > "$OUT"
25 if git diff-index
--name-only HEAD |
read dummy
; then
32 echo "const char rfkill_version[] = \"$v\";" > "$OUT"