summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2015-02-24 13:34:17 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2015-02-24 13:34:17 +0100
commit892d6edccd8d94b24cf4740638fa07c9762650fc (patch)
treeeb5c44056f356c4df1b741e5f80df5538e2276bd /autogen.sh
parent329ef1c22a3314ca224716eedc2c33c477d4fbb9 (diff)
downloadcalcurse-892d6edccd8d94b24cf4740638fa07c9762650fc.zip
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>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh5
1 files 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