makepkg: make in-place sed portable
commitc27904661ef96cb2e7c729ce82b527146529c768
authorAllan McRae <allan@archlinux.org>
Sun, 26 Apr 2009 10:58:04 +0000 (26 20:58 +1000)
committerDan McGee <dan@archlinux.org>
Sun, 26 Apr 2009 14:22:23 +0000 (26 09:22 -0500)
tree41c3d407ecab07f9dffd477ab133dd18fcf66456
parent10584ec8eab873ffb4b03dd8e4a4703dabed8955
makepkg: make in-place sed portable

Do a sed replacement in-place is not very portable.  On Mac OSX and
BSDs, the syntax is "sed -i ''" where as with GNU sed the command is
"sed -i''" or just "sed -i".  This patch detects which command should
be used during configure.

Credit to Kevin Barry who researched this issue and provided a patch
to work around this using temporary backup files.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
configure.ac
scripts/Makefile.am
scripts/makepkg.sh.in