Change in osmo-pcu[master]: Makefile.am: generate missing .version file
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/28959 ) Change subject: Makefile.am: generate missing .version file ...................................................................... Makefile.am: generate missing .version file Change-Id: Id0cd2debf9b2d120c6dec1e534eefc4fe0a4210f --- M .gitignore M Makefile.am 2 files changed, 11 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/59/28959/1 diff --git a/.gitignore b/.gitignore index c8b1d06..20c6470 100644 --- a/.gitignore +++ b/.gitignore @@ -42,8 +42,11 @@ tests/testsuite tests/testsuite.log -# ignore debian files +# git-version-gen magic .tarball-version +.version + +# ignore debian files debian/autoreconf.after debian/autoreconf.before debian/files diff --git a/Makefile.am b/Makefile.am index 85e3c65..3c08733 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,8 @@ AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6 SUBDIRS = include src doc tests contrib + +BUILT_SOURCES = $(top_srcdir)/.version EXTRA_DIST = \ README.md \ contrib/osmo-pcu.spec.in \ @@ -12,3 +14,8 @@ --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) @RELMAKE@ + +$(top_srcdir)/.version: + echo $(VERSION) > $@-t && mv $@-t $@ +dist-hook: + echo $(VERSION) > $(distdir)/.tarball-version -- To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/28959 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Change-Id: Id0cd2debf9b2d120c6dec1e534eefc4fe0a4210f Gerrit-Change-Number: 28959 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> Gerrit-MessageType: newchange
participants (1)
-
fixeria