From: Joey Hess Date: Mon, 9 Nov 2009 18:47:37 +0000 (-0500) Subject: more portable use of sed -i X-Git-Tag: 3.20091113~25 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/76d72e9bdd983ca05d84bef158644ff009931e31?hp=9f0931ce21e5f58e2e9de0ef302beca08b8f9177 more portable use of sed -i Apparently OS X requires the extension be specified. But this turns on backup in GNU sed, so have to remove that. --- diff --git a/Makefile.PL b/Makefile.PL index 474098814..462f7364d 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -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/\((.*?)\)/';print m/\((.*?)\)/'