mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-07 12:45:34 +00:00
Define __RGBDS_VERSION__ as the output of rgbasm --version (sans "rgbasm")
Fixes #824
This commit is contained in:
1 parent
de7d1facf3
commit
bcb78f5d18
3 files changed
+4
No files matched your search
@@ -38,12 +38,14 @@ tryCmp () {
|
||||
|
||||
# Add the version constants test, outputting the closest tag to the HEAD
|
||||
if git describe --tags --abbrev=0 > version.out; then
|
||||
$RGBASM --version >> version.out
|
||||
cat > version.asm <<EOF
|
||||
IF !DEF(__RGBDS_RC__)
|
||||
PRINTLN "v{d:__RGBDS_MAJOR__}.{d:__RGBDS_MINOR__}.{d:__RGBDS_PATCH__}"
|
||||
ELSE
|
||||
PRINTLN "v{d:__RGBDS_MAJOR__}.{d:__RGBDS_MINOR__}.{d:__RGBDS_PATCH__}-rc{d:__RGBDS_RC__}"
|
||||
ENDC
|
||||
PRINTLN "rgbasm {__RGBDS_VERSION__}"
|
||||
EOF
|
||||
else
|
||||
echo "${bold}${orange}Warning: cannot run version test!${rescolors}${resbold}"
|
||||
|
||||
Reference in new issue
Block a user