Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon <ron@debian.org>2013-05-11 02:03:03 +0400
committerRon <ron@debian.org>2013-05-11 02:03:03 +0400
commit8d925ec2543a57ea48dad576b00bd14dbc4c817e (patch)
treea264eabd6f3e784a9f63fa7d6a2334ac5824ea43 /Makefile.unix
parentb7d5531ffeacfd2d876d05c59be06926ddff11e5 (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.unix')
-rw-r--r--Makefile.unix6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.unix b/Makefile.unix
index 84244bf7..7d37995d 100644
--- a/Makefile.unix
+++ b/Makefile.unix
@@ -116,7 +116,11 @@ celt/celt.o: CFLAGS += -DPACKAGE_VERSION='$(PACKAGE_VERSION)'
celt/celt.o: package_version
package_version: force
- @./update_version || true
+ @if [ -x ./update_version ]; then \
+ ./update_version || true; \
+ elif [ ! -e ./package_version ]; then \
+ echo 'PACKAGE_VERSION="unknown"' > ./package_version; \
+ fi
force: