1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-26 17:10:38 +00:00

Move commid id outside qb64 source

This commit is contained in:
Luke Ceddia 2018-11-02 20:17:33 +11:00
parent 3575e98f61
commit bc0a405de0
6 changed files with 13 additions and 6 deletions

1
.gitignore vendored
View file

@ -9,3 +9,4 @@ internal/config.txt
internal/help
internal/config(2).txt
internal/config(1).txt
internal/version.txt

View file

@ -42,7 +42,7 @@ IF ERRORLEVEL 1 exit /b 1
cd ..\..
echo Compiling new QB64
echo AutoBuildMsg$ = CHR$(10) + "From git %APPVEYOR_REPO_COMMIT:~0,7%" >> source\global\version.bas
echo From git %APPVEYOR_REPO_COMMIT:~0,7% > internal\version.txt
qb64_bootstrap.exe -x source\qb64.bas -o qb64.exe
IF ERRORLEVEL 1 exit /b 1

View file

@ -38,7 +38,7 @@ cd - > /dev/null
###### Part 2: Build new QB64 from .bas sources ######
echo "Translating .bas source..."
echo AutoBuildMsg\$ = CHR\$\(10\) + \"From git `echo $TRAVIS_COMMIT | sed 's/\(.......\).*$/\1/'`\" >> source/global/version.bas
echo From git `echo $TRAVIS_COMMIT | sed 's/\(.......\).*$/\1/'` > internal/version.txt
./qb64_bootstrap -x -z source/qb64.bas > /tmp/qb64-output
rm qb64_bootstrap
if [ `wc -l /tmp/qb64-output |awk '{print $1}'` -gt 2 ]; then

View file

@ -38,7 +38,7 @@ cd - > /dev/null
###### Part 2: Build new QB64 from .bas sources ######
echo -n "Translating .bas source..."
echo AutoBuildMsg\$ = CHR\$\(10\) + \"From git `echo $TRAVIS_COMMIT | sed 's/\(.......\).*$/\1/'`\" >> source/global/version.bas
echo From git `echo $TRAVIS_COMMIT | sed 's/\(.......\).*$/\1/'` > internal/version.txt
./qb64_bootstrap -x -z source/qb64.bas > /tmp/qb64-output
rm qb64_bootstrap
if [ `wc -l /tmp/qb64-output |awk '{print $1}'` -gt 2 ]; then

View file

@ -1,7 +1,13 @@
DIM SHARED Version AS STRING
DIM SHARED BuildNum AS STRING
DIM SHARED AutoBuildMsg AS STRING
Version$ = "1.2"
'BuildNum format is YYYYMMDD/id, where id is a ever-increasing
'integer. If you make a change, update the date and increase the id!
BuildNum$ = "[dev build]"
IF _FILEEXISTS("internal/version.txt") THEN
versionfile = FREEFILE
OPEN "internal/version.txt" FOR INPUT AS #versionfile
LINE INPUT #versionfile, AutoBuildMsg
CLOSE #versionfile
END IF

View file

@ -4734,7 +4734,7 @@ FUNCTION ide2 (ignore)
IF menu$(m, s) = "#About..." THEN
PCOPY 2, 0
idemessagebox "About", "QB64 Version " + Version$ + CHR$(10) + "Revision " + BuildNum$ + AutoBuildMsg$
idemessagebox "About", "QB64 Version " + Version$ + CHR$(10) + "Revision " + BuildNum$ + CHR$(10) + AutoBuildMsg$
PCOPY 3, 0: SCREEN , , 3, 0: idewait4mous: idewait4alt
GOTO ideloop
END IF