chiark / gitweb /
build: Tolerate building from a git checkout, but with git not installed.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Nov 2017 14:07:31 +0000 (14:07 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Nov 2017 14:07:37 +0000 (14:07 +0000)
This can happen in chroots.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile.in
debian/changelog

index bfcc7b1..c9e247a 100644 (file)
@@ -148,7 +148,7 @@ check: eax-aes-test.confirm eax-serpent-test.confirm \
 
 version.c: Makefile
        echo "#include \"secnet.h\"" >$@.new
-       @set -ex; if test -e .git; then \
+       @set -ex; if test -e .git && type -p git >/dev/null; then \
                v=$$(git describe --match 'v*'); v=$${v#v}; \
                if ! git diff --quiet HEAD; then v="$$v+"; fi; \
        else \
index 79d8637..a2f7170 100644 (file)
@@ -1,6 +1,8 @@
 secnet (0.4.2~) unstable; urgency=medium
 
-  * 
+  Build etc. fixes:
+  * Tolerate building from a git checkout, but with git not installed.
+    (This can happen in chroots.)
 
  -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Sat, 25 Nov 2017 14:04:42 +0000