diff options
author | Ron <ron@debian.org> | 2013-05-11 02:03:03 +0400 |
---|---|---|
committer | Ron <ron@debian.org> | 2013-05-11 02:03:03 +0400 |
commit | 8d925ec2543a57ea48dad576b00bd14dbc4c817e (patch) | |
tree | a264eabd6f3e784a9f63fa7d6a2334ac5824ea43 /Makefile.am | |
parent | b7d5531ffeacfd2d876d05c59be06926ddff11e5 (diff) |
Don't fail hard if package_version does not exist
There's currently at least one way that people can legitimately get a
tarball that doesn't include it, via the gitweb snapshots, so create
it rather than considering that an error to be manually fixed.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index e22abfa5..b128541f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -171,6 +171,9 @@ $(top_srcdir)/configure.ac: force dist-* | dist | distcheck | distclean) _arg=release ;; \ esac; \ if ! $(top_srcdir)/update_version $$_arg 2> /dev/null; then \ + if [ ! -e $(top_srcdir)/package_version ]; then \ + echo 'PACKAGE_VERSION="unknown"' > $(top_srcdir)/package_version; \ + fi; \ . $(top_srcdir)/package_version || exit 1; \ [ "$(PACKAGE_VERSION)" != "$$PACKAGE_VERSION" ] || exit 0; \ fi; \ |