From 892d6edccd8d94b24cf4740638fa07c9762650fc Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 24 Feb 2015 13:34:17 +0100 Subject: autogen.sh: Do not use `sed -i` `sed -i` is not portable, use a temporary file instead. Signed-off-by: Lukas Fleischer --- autogen.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index dbb7086..bd21ca3 100755 --- a/autogen.sh +++ b/autogen.sh @@ -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 -- cgit v1.2.3-70-g09d2