]>
git.ipfire.org Git - thirdparty/iw.git/blob - version.sh
6 if head=`git rev-parse --verify HEAD 2>/dev/null`; then
7 git update-index
--refresh --unmerged > /dev
/null
10 # on git builds check that the version number above
12 [ "${descr%%-*}" = "v$VERSION" ] ||
exit 2
14 echo -n '#define IW_VERSION "' > "$OUT"
15 echo -n "${descr#v}" >> "$OUT"
16 if git diff-index
--name-only HEAD |
read dummy
; then
17 echo -n "-dirty" >> "$OUT"
21 echo "#define IW_VERSION \"$VERSION\"" > "$OUT"