about summary refs log tree commit diff
path: root/substitute.mk
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-01-02T16·04+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-01-02T16·04+0000
commit9ff365709541b8f50fddcf667ded07a5b9f774de (patch)
tree8d9780afe6dbc0c36fd6108b5d3004bf90a1f0a1 /substitute.mk
parent0e09cc12c08ad2db0b8620ca537bd81ca45c05df (diff)
* Generate RPM spec file.
Diffstat (limited to 'substitute.mk')
-rw-r--r--substitute.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/substitute.mk b/substitute.mk
index cc21eba402..bbdb9b617b 100644
--- a/substitute.mk
+++ b/substitute.mk
@@ -8,5 +8,6 @@
 	 -e "s^@libexecdir\@^$(libexecdir)^g" \
 	 -e "s^@system\@^$(system)^g" \
 	 -e "s^@wget\@^$(wget)^g" \
+	 -e "s^@version\@^$(VERSION)^g" \
 	 < $< > $@ || rm $@
-	chmod +x $@
+	if test -x $<; then chmod +x $@; fi