mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-06-29 12:50:37 +00:00
Move commid id outside qb64 source
This commit is contained in:
parent
3575e98f61
commit
bc0a405de0
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,3 +9,4 @@ internal/config.txt
|
||||||
internal/help
|
internal/help
|
||||||
internal/config(2).txt
|
internal/config(2).txt
|
||||||
internal/config(1).txt
|
internal/config(1).txt
|
||||||
|
internal/version.txt
|
||||||
|
|
|
@ -42,7 +42,7 @@ IF ERRORLEVEL 1 exit /b 1
|
||||||
cd ..\..
|
cd ..\..
|
||||||
|
|
||||||
echo Compiling new QB64
|
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
|
qb64_bootstrap.exe -x source\qb64.bas -o qb64.exe
|
||||||
IF ERRORLEVEL 1 exit /b 1
|
IF ERRORLEVEL 1 exit /b 1
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ cd - > /dev/null
|
||||||
|
|
||||||
###### Part 2: Build new QB64 from .bas sources ######
|
###### Part 2: Build new QB64 from .bas sources ######
|
||||||
echo "Translating .bas source..."
|
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
|
./qb64_bootstrap -x -z source/qb64.bas > /tmp/qb64-output
|
||||||
rm qb64_bootstrap
|
rm qb64_bootstrap
|
||||||
if [ `wc -l /tmp/qb64-output |awk '{print $1}'` -gt 2 ]; then
|
if [ `wc -l /tmp/qb64-output |awk '{print $1}'` -gt 2 ]; then
|
||||||
|
|
|
@ -38,7 +38,7 @@ cd - > /dev/null
|
||||||
|
|
||||||
###### Part 2: Build new QB64 from .bas sources ######
|
###### Part 2: Build new QB64 from .bas sources ######
|
||||||
echo -n "Translating .bas source..."
|
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
|
./qb64_bootstrap -x -z source/qb64.bas > /tmp/qb64-output
|
||||||
rm qb64_bootstrap
|
rm qb64_bootstrap
|
||||||
if [ `wc -l /tmp/qb64-output |awk '{print $1}'` -gt 2 ]; then
|
if [ `wc -l /tmp/qb64-output |awk '{print $1}'` -gt 2 ]; then
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
DIM SHARED Version AS STRING
|
DIM SHARED Version AS STRING
|
||||||
DIM SHARED BuildNum AS STRING
|
DIM SHARED BuildNum AS STRING
|
||||||
DIM SHARED AutoBuildMsg AS STRING
|
DIM SHARED AutoBuildMsg AS STRING
|
||||||
|
|
||||||
Version$ = "1.2"
|
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]"
|
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
|
||||||
|
|
||||||
|
|
|
@ -4734,7 +4734,7 @@ FUNCTION ide2 (ignore)
|
||||||
|
|
||||||
IF menu$(m, s) = "#About..." THEN
|
IF menu$(m, s) = "#About..." THEN
|
||||||
PCOPY 2, 0
|
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
|
PCOPY 3, 0: SCREEN , , 3, 0: idewait4mous: idewait4alt
|
||||||
GOTO ideloop
|
GOTO ideloop
|
||||||
END IF
|
END IF
|
||||||
|
|
Loading…
Reference in a new issue