summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-04-14 15:29:50 -0400
committerJoey Hess <joey@gnu.kitenet.net>2010-04-14 15:29:50 -0400
commit6a624ad72242c47964f7a5e802f2533db7460306 (patch)
treeeafe8ef84bd1d77d5b52fa1800b63f3e31f6434f /Makefile
parenta7a6f970db8d3e6494387e38c750e4daef8a7b9b (diff)
more portable sed
I guess that non-gnu sed may require an extension to -i
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6b80f73..38cc49b 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,7 @@ clean: etckeeper.spec
rm -rf build
etckeeper.spec:
- sed -i "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)/" etckeeper.spec
+ sed -i~ "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)/" etckeeper.spec
+ rm -f etckeeper.spec~
.PHONY: etckeeper.spec