summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2010-04-15 12:14:06 +0200
committerAndreas Gruenbacher <agruen@suse.de>2010-04-15 12:21:45 +0200
commit57d468b7a4e9b0506ff1fc88b02f6bdbb689c4a2 (patch)
tree5605eec0944af44e4bcc92e4bcf7a440555d6265
parent65a8f0f2788d5a6ee0e67a978bc2a8d47c1c5809 (diff)
downloadpatch-57d468b7a4e9b0506ff1fc88b02f6bdbb689c4a2.tar.gz
Add rules for generating .version and for including .tarball-version in dist tarballs
* Makefile.am: Add rules for generating .version and for including .tarball-version in dist tarballs.
-rw-r--r--.gitignore1
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.am6
3 files changed, 12 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index c313960..5caf381 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
-/lib/Makefile.am
.deps/
/.pc/
+/.version
/INSTALL
/VERSION
/aclocal.m4
diff --git a/ChangeLog b/ChangeLog
index 00ebb0a..d95f0ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-15 Andreas Gruenbacher <agruen@suse.de>
+
+ * Makefile.am: Add rules for generating .version and for including
+ .tarball-version in dist tarballs.
+
2010-04-12 Andreas Gruenbacher <agruen@suse.de>
* src/util.c: Fix the use of HAVE_UTIME_H.
diff --git a/Makefile.am b/Makefile.am
index 1403256..970232d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,6 +34,12 @@ else
GNU_SERVER = ftp.gnu.org
endif
+BUILT_SOURCES = $(top_srcdir)/.version
+$(top_srcdir)/.version:
+ echo $(VERSION) > $@-t && mv $@-t $@
+dist-hook:
+ echo $(VERSION) > $(distdir)/.tarball-version
+
tell-upload:
echo; \
(echo "Upload with: "; \