summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2012-11-07 21:33:12 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2012-11-07 21:33:12 (GMT)
commit8ef4e39adb74c358339b7f46410d503ea10efb15 (patch)
tree2da651accccfb14a39a1d953c05cf2b310c60807
parentbc9b5c8dc1f035ee0134950592eec6bf638d6ea6 (diff)
downloadbin_scripts-8ef4e39adb74c358339b7f46410d503ea10efb15.zip
bin_scripts-8ef4e39adb74c358339b7f46410d503ea10efb15.tar.gz
bin_scripts-8ef4e39adb74c358339b7f46410d503ea10efb15.tar.bz2
autotools: fix missing git/version files.
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am11
2 files changed, 12 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 6e1090b..0fea710 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@ config.log
config.status
aclocal.m4
autom4te.cache/*
+.version
## The final scripts (after autotools' substitutions)
## no need to track them (they are generated from the scripts/*.in files)
diff --git a/Makefile.am b/Makefile.am
index 7d7f88a..fbcbc8a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1,12 @@
SUBDIRS = scripts
+
+EXTRA_DIST = $(top_srcdir)/.version \
+ bootstrap.sh
+
+BUILT_SOURCES = $(top_srcdir)/.version
+
+$(top_srcdir)/.version:
+ echo $(VERSION) > $@-t && mv $@-t $@
+
+dist-hook:
+ echo $(VERSION) > $(distdir)/.tarball-version