summaryrefslogtreecommitdiffstats
path: root/git-version-gen
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2010-12-04 13:47:43 +0000
committerColin Guthrie <cguthrie@mandriva.org>2010-12-04 13:59:48 +0000
commite9deb97d94ca64b563adfef02dc45fb3ec6be2de (patch)
tree98f7202c9115cbc7029f45ee1f02647335138c7f /git-version-gen
parenta1f1255635ee013c027b981f47d186d83a70d6dd (diff)
build-sys: Include the .version file in the distribution tarball
As per the comments in git-version-gen, the .version file that is typically generated automatically during build should be included in the tarball, so generate it in the dist-hook. This fixes a problem when running make distcheck which uses a read-only source folder and thus cannot generate the $top_srcdir/.version as part of it's build process (it uses a _build folder which is r/w) and thus cannot be built.
Diffstat (limited to 'git-version-gen')
-rwxr-xr-xgit-version-gen1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-version-gen b/git-version-gen
index ae3988ea..d59a0fc0 100755
--- a/git-version-gen
+++ b/git-version-gen
@@ -67,6 +67,7 @@ scriptversion=2008-04-08.07
# echo $(VERSION) > $@-t && mv $@-t $@
# dist-hook:
# echo $(VERSION) > $(distdir)/.tarball-version
+# echo $(VERSION) > $(distdir)/.version
case $# in
1) ;;