]> code.delx.au - pulseaudio/commitdiff
build-sys: Include the .version file in the distribution tarball
authorColin Guthrie <cguthrie@mandriva.org>
Sat, 4 Dec 2010 13:47:43 +0000 (13:47 +0000)
committerColin Guthrie <cguthrie@mandriva.org>
Sun, 5 Dec 2010 15:59:13 +0000 (15:59 +0000)
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.

Makefile.am
git-version-gen

index b8e22eaecdcb848feed980705e26b4f600b480bf..a8a9eaacafa9d6b409012b09ffa2cf61d7be3ee9 100644 (file)
@@ -77,6 +77,7 @@ dist-hook:
                ( git-changelog.perl || echo "git-changelog.perl failed." ) > ${distdir}/ChangeLog 2>&1 ; \
        fi
        echo $(VERSION) > $(distdir)/.tarball-version
+       echo $(VERSION) > $(distdir)/.version
 
 .PHONY: homepage distcleancheck doxygen
 
index 1a3d13b9c60b477c981e92affe168783995ada36..6181ad92058d453edad8aba8714a2328efd040db 100755 (executable)
@@ -67,6 +67,7 @@ scriptversion=2008-04-08.07.01
 #      echo $(VERSION) > $@-t && mv $@-t $@
 # dist-hook:
 #      echo $(VERSION) > $(distdir)/.tarball-version
+#      echo $(VERSION) > $(distdir)/.version
 
 case $# in
     1) ;;