]> granicus.if.org Git - pgbadger/commitdiff
Fixes SED use for OSX builds
authorSteve Newson <steven.newson@gmail.com>
Tue, 11 Sep 2018 14:50:06 +0000 (15:50 +0100)
committerSteve Newson <steven.newson@gmail.com>
Tue, 11 Sep 2018 14:59:34 +0000 (15:59 +0100)
Makefile.PL

index ebcae9af9a9986572cbb619e0b3793a113517876..9770728adf69c03af35a71ee2d800dc180ec7aeb 100644 (file)
@@ -45,12 +45,14 @@ doc/synopsis.pod: Makefile pgbadger
        echo "=head1 SYNOPSIS" > $@
        ./pgbadger --help >> $@
        echo "=head1 DESCRIPTION" >> $@
-       sed -i 's/ +$$//g' $@
+       sed -i.bak 's/ +$$//g' $@
+       rm $@.bak
 
 .PHONY: doc/pgBadger.pod
 doc/pgBadger.pod: doc/synopsis.pod Makefile
-       sed -i '/^=head1 SYNOPSIS/,/^=head1 DESCRIPTION/d' $@
-       sed -i '4r $<' $@
+       sed -i.bak '/^=head1 SYNOPSIS/,/^=head1 DESCRIPTION/d' $@
+       sed -i.bak '4r $<' $@
+       rm $@.bak
 EOMAKE
 }