]> sipb.mit.edu Git - ikiwiki.git/commitdiff
more portable use of sed -i
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 9 Nov 2009 18:47:37 +0000 (13:47 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 9 Nov 2009 18:47:37 +0000 (13:47 -0500)
Apparently OS X requires the extension be specified. But this
turns on backup in GNU sed, so have to remove that.

Makefile.PL

index 4740988149a15350bd88732955c34874a361b7fe..462f7364d57ce1c465db2b9ff0c2368a1279b3c2 100755 (executable)
@@ -44,7 +44,8 @@ extra_build: ikiwiki.out ikiwiki.setup docwiki
        ./mdwn2man ikiwiki-update-wikilist 1 doc/ikiwiki-update-wikilist.mdwn > ikiwiki-update-wikilist.man
        ./mdwn2man ikiwiki-calendar 1 doc/ikiwiki-calendar.mdwn > ikiwiki-calendar.man
        $(MAKE) -C po
-       sed -i "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)/" ikiwiki.spec
+       sed -i.bkp "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)/" ikiwiki.spec
+       rm -f ikiwiki.spec.bkp
        
 docwiki: ikiwiki.out
        $(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.out -libdir . -setup docwiki.setup -refresh