1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2024-11-14 13:26:10 +00:00
notnotdnethack/util/version.sh
2015-03-01 12:11:43 +01:00

6 lines
148 B
Bash
Executable file

#!/bin/sh
${1:-cc} -E - <<EOF | tail -n1 | sed "s/ //g"
#include "include/patchlevel.h"
VERSION_MAJOR . VERSION_MINOR . PATCHLEVEL - EDITLEVEL
EOF