]>
git.ipfire.org Git - thirdparty/iw.git/blob - version.sh
7ccd419ffc468b2806add4bfff43c325abb866a8
6 if [ -d .git
] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
7 git update-index
--refresh --unmerged > /dev
/null
8 descr
=$
(git describe
--match=v
*)
10 # on git builds check that the version number above
12 [ "${descr%%-*}" = "v$VERSION" ] ||
exit 2
15 if git diff-index
--name-only HEAD |
read dummy
; then
22 echo '#include "iw.h"' > "$OUT"
23 echo "const char iw_version[] = \"$v\";" >> "$OUT"