-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaed1b2
commit abed437
Showing
14 changed files
with
81 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
@echo off | ||
|
||
for /F "tokens=*" %%g in ('git describe --tags') do (set buildvers=%%g) | ||
for /F "tokens=*" %%g in ('go run %~dp0/timenow.go') do (set buildtime=%%g) | ||
for /f "tokens=2 delims==" %%g in ('wmic os get localdatetime /value') do set dt=%%g | ||
set buildtime=%dt:~0,4%-%dt:~4,2%-%dt:~6,2%T%dt:~8,2%:%dt:~10,2%:%dt:~12,2%.%dt:~15,3%Z | ||
|
||
set wd=%~dp0.. | ||
go build -o %GOPATH%/bin/wpkbuild.exe -v -ldflags="-X 'github.com/schwarzlichtbezirk/wpk/luawpk.BuildVers=%buildvers%' -X 'github.com/schwarzlichtbezirk/wpk/luawpk.BuildTime=%buildtime%'" %wd%/util/build | ||
go build -o %GOPATH%/bin/wpkextract.exe -v %wd%/util/extract | ||
go build -o %GOPATH%/bin/wpkpack.exe -v %wd%/util/pack | ||
go build -o %GOPATH%/bin/wpkbuild.exe -v -ldflags="-X 'github.com/schwarzlichtbezirk/wpk/luawpk.BuildVers=%buildvers%' -X 'github.com/schwarzlichtbezirk/wpk/luawpk.BuildTime=%buildtime%'" %wd%/cmd/build | ||
go build -o %GOPATH%/bin/wpkextract.exe -v %wd%/cmd/extract | ||
go build -o %GOPATH%/bin/wpkpack.exe -v %wd%/cmd/pack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
#!/bin/bash | ||
|
||
buildvers=$(git describe --tags) | ||
buildtime=$(go run "$(dirname "$0")/timenow.go") # $(date -u +'%FT%TZ') | ||
# See https://tc39.es/ecma262/#sec-date-time-string-format | ||
# time format acceptable for Date constructors. | ||
buildtime=$(date +'%FT%T.%3NZ') | ||
|
||
wd=$(realpath -s "$(dirname "$0")/..") | ||
go build -o $GOPATH/bin/wpkbuild.exe -v -ldflags="-X 'github.com/schwarzlichtbezirk/wpk/luawpk.BuildVers=$buildvers' -X 'github.com/schwarzlichtbezirk/wpk/luawpk.BuildTime=$buildtime'" $wd/util/build | ||
go build -o $GOPATH/bin/wpkextract.exe -v $wd/util/extract | ||
go build -o $GOPATH/bin/wpkpack.exe -v $wd/util/pack | ||
go build -o $GOPATH/bin/wpkbuild.exe -v -ldflags="\ | ||
-X 'github.com/schwarzlichtbezirk/wpk/luawpk.BuildVers=$buildvers'\ | ||
-X 'github.com/schwarzlichtbezirk/wpk/luawpk.BuildTime=$buildtime'"\ | ||
$wd/cmd/build | ||
go build -o $GOPATH/bin/wpkextract.exe -v $wd/cmd/extract | ||
go build -o $GOPATH/bin/wpkpack.exe -v $wd/cmd/pack |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters