aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-05-05 08:49:19 +0200
committerWladimir J. van der Laan <[email protected]>2014-05-05 08:58:16 +0200
commitd4ffe4e425b5a3f6fe4ff0ce7297608dfe6c7417 (patch)
treecd046031e29eba12b22806afd4f79823aa05f04e /src
parentdoc: remove specific mention of boost 1.55 (diff)
parentdon't use sed's -i option to stay posix compliant (diff)
downloaddiscoin-d4ffe4e425b5a3f6fe4ff0ce7297608dfe6c7417.tar.xz
discoin-d4ffe4e425b5a3f6fe4ff0ce7297608dfe6c7417.zip
Merge pull request #4120
dbe8f75 don't use sed's -i option to stay posix compliant (Fabian Raetz)
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.include12
-rw-r--r--src/qt/Makefile.am4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/Makefile.include b/src/Makefile.include
index 01b47d1aa..2fc6cd777 100644
--- a/src/Makefile.include
+++ b/src/Makefile.include
@@ -40,18 +40,18 @@ $(LIBBITCOINQT):
ui_%.h: %.ui
@test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
@test -f $(UIC) && QT_SELECT=$(QT_SELECT) $(UIC) -o $(abs_builddir)/$@ $(abs_srcdir)/$< || echo error: could not build $(abs_builddir)/$@
- $(SED) -i.bak -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ && rm $(abs_builddir)/[email protected]
- $(SED) -i.bak -e '/^\*\*.*by:/d' $(abs_builddir)/$@ && rm $(abs_builddir)/[email protected]
+ $(SED) -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ > $(abs_builddir)/[email protected] && mv $(abs_builddir)/$@{.n,}
+ $(SED) -e '/^\*\*.*by:/d' $(abs_builddir)/$@ > $(abs_builddir)/[email protected] && mv $(abs_builddir)/$@{.n,}
%.moc: %.cpp
QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
- $(SED) -i.bak -e '/^\*\*.*Created:/d' $@ && rm [email protected]
- $(SED) -i.bak -e '/^\*\*.*by:/d' $@ && rm [email protected]
+ $(SED) -e '/^\*\*.*Created:/d' $@ > [email protected] && mv $@{.n,}
+ $(SED) -e '/^\*\*.*by:/d' $@ > [email protected] && mv $@{.n,}
moc_%.cpp: %.h
QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
- $(SED) -i.bak -e '/^\*\*.*Created:/d' $@ && rm [email protected]
- $(SED) -i.bak -e '/^\*\*.*by:/d' $@ && rm [email protected]
+ $(SED) -e '/^\*\*.*Created:/d' $@ > [email protected] && mv $@{.n,}
+ $(SED) -e '/^\*\*.*by:/d' $@ > [email protected] && mv $@{.n,}
%.qm: %.ts
@test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
diff --git a/src/qt/Makefile.am b/src/qt/Makefile.am
index 44d296450..8ec1ae258 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 [email protected]
- $(SED) -i.bak -e '/^\*\*.*by:/d' $@ && rm [email protected]
+ $(SED) -e '/^\*\*.*Created:/d' $@ > [email protected] && mv $@{.n,}
+ $(SED) -e '/^\*\*.*by:/d' $@ > [email protected] && mv $@{.n,}
CLEANFILES = $(BUILT_SOURCES) $(QT_QM) $(QT_FORMS_H) *.gcda *.gcno