autogen.sh: Do not use sed -i

`sed -i` is not portable, use a temporary file instead.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2015-02-24 13:34:17 +01:00
parent 329ef1c22a
commit 892d6edccd

View File

@ -32,8 +32,9 @@
autopoint --force
if ! grep -F -q datarootdir po/Makefile.in.in
then
sed -i '/^datadir =/i\
datarootdir = @datarootdir@\' po/Makefile.in.in
sed '/^datadir =/i\
datarootdir = @datarootdir@\' po/Makefile.in.in >po/Makefile.in.in.tmp
mv po/Makefile.in.in.tmp po/Makefile.in.in
fi
aclocal -I m4
autoheader