Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
4.2.5: Generate version.go at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDonk committed Feb 6, 2023
1 parent bddd4a9 commit 2af96b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# Read current version
VERSION=$(<VERSION)
echo package vmwpatch > ./vmwpatch/version.go
echo const VERSION = \"$VERSION\" >> ./vmwpatch/version.go

echo Building release executables - $VERSION

Expand Down
2 changes: 2 additions & 0 deletions debug-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
VERSION=$(<VERSION)

echo Building debug executables - $VERSION
echo package vmwpatch > ./vmwpatch/version.go
echo const VERSION = \"$VERSION\" >> ./vmwpatch/version.go

mkdir -p ./build/iso
mkdir -p ./build/linux
Expand Down

0 comments on commit 2af96b5

Please sign in to comment.