aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorFabian Raetz <fabian.raetz@gmail.com>2014-05-02 21:32:12 +0200
committerFabian Raetz <fabian.raetz@gmail.com>2014-05-02 21:32:12 +0200
commitdbe8f7526266092fe7b045dadaefb753feca15a6 (patch)
treec5ff2067fb0f3c82d5df4db8beda5905655c3c06 /src/qt
parent3e7dac9dadb4cb45d2a6771d208c920b667c289b (diff)
don't use sed's -i option to stay posix compliant
POSIX does not define sed's -i option. To stay as portable as possible we should not relay on it.
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/Makefile.am b/src/qt/Makefile.am
index 44d2964501..8ec1ae2583 100644
--- a/src/qt/Makefile.am
+++ b/src/qt/Makefile.am
@@ -372,7 +372,7 @@ translate: bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_CPP) $(
$(QT_QRC_CPP): $(QT_QRC) $(QT_QM) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(PROTOBUF_H)
@cd $(abs_srcdir); test -f $(RCC) && QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin -o $(abs_builddir)/$@ $< || \
echo error: could not build $@
- $(SED) -i.bak -e '/^\*\*.*Created:/d' $@ && rm $@.bak
- $(SED) -i.bak -e '/^\*\*.*by:/d' $@ && rm $@.bak
+ $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,}
+ $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,}
CLEANFILES = $(BUILT_SOURCES) $(QT_QM) $(QT_FORMS_H) *.gcda *.gcno