blob: b6f929a31010181a87334748a651e110f7349488 [file] [log] [blame] [edit]
#!/bin/sh
VERSION="0.9.22"
SUFFIX=
if test "x$1" = x--suffix; then
shift
SUFFIX="-$1"
shift
fi
OUT="$1"
if test "x$SUFFIX" != 'x'; then
v="$VERSION$SUFFIX"
else
v="$VERSION"
fi
echo '#include "iw.h"' > "$OUT"
echo "const char iw_version[] = \"$v\";" >> "$OUT"