Skip to content

Commit

Permalink
Generate a version file
Browse files Browse the repository at this point in the history
  • Loading branch information
SveSop committed Aug 4, 2021
1 parent a392da4 commit 5e0bf67
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ target_arch = target_machine.cpu_family() == 'x86_64' ? '-m64' : '-m32'

install_dir = get_option('libdir') / 'wine'

nvlibs_version = vcs_tag(
command: ['git', 'describe', '--always', '--tags', '--long', '--dirty=+'],
input: 'version.in',
output: 'version')

subdir('dlls')
1 change: 1 addition & 0 deletions package-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function build_arch {
cd "$NVLIBS_BUILD_DIR/build.$1"
ninja install

cp "$NVLIBS_BUILD_DIR/build.$1/version" "$NVLIBS_BUILD_DIR/version"
rm -R "$NVLIBS_BUILD_DIR/build.$1"
}

Expand Down
1 change: 1 addition & 0 deletions version.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@VCS_TAG@

0 comments on commit 5e0bf67

Please sign in to comment.