Added Version information
authorHeiko Schlittermann <hs@schlittermann.de>
Fri, 05 Nov 2010 10:04:48 +0100
changeset 20 47d98dab743e
parent 19 df3ab24a3069
child 21 dada04e00055
Added Version information
Makefile
--- a/Makefile	Fri Nov 05 08:40:53 2010 +0100
+++ b/Makefile	Fri Nov 05 10:04:48 2010 +0100
@@ -24,8 +24,8 @@
 	test $$rc = 0
 	@perl -c $<
 	@test -f .hg_archival.txt \
-	    && version=`grep ^node: | cut -f2 -d ' ' .hg_archival.txt` ;\
-	    version=`hg id | cut -f1 -d' '` ;\
-	perl -pe 's/__VERSION__/'$$version'/' $< >$<.tmp
+	    && version=`grep ^node: .hg_archival.txt | cut -f2 -d ' '` \
+	    || version=`hg id | cut -f1 -d' '` \
+	&&perl -pe 's/__VERSION__/'$$version'/' $< >$<.tmp
 	@mv -f $<.tmp $@
 	@chmod +x-w $@