Diff

Makefile @ 6840:eeefe8d42b8b

Makefile: Fix building prosody.version (.hg/dirstate is a file, not a directory)
author Kim Alvefur <zash@zash.se>
date Mon, 21 Sep 2015 23:00:49 +0200
parent 6810:533fd843d91f
child 6883:954a8a8c46d6
line wrap: on
line diff
--- a/Makefile	Fri Sep 18 16:16:10 2015 +0200
+++ b/Makefile	Mon Sep 21 23:00:49 2015 +0200
@@ -66,7 +66,7 @@
 	sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' $^ > $@
 
 prosody.version: $(wildcard prosody.release .hg/dirstate)
-	test -d .hg/dirstate && \
+	test -f .hg/dirstate && \
 		hexdump -n6 -e'6/1 "%02x"' .hg/dirstate > $@ || true
 	test -f prosody.release && \
 		cp prosody.release $@ || true