mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
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.
This commit is contained in:
parent
3e7dac9dad
commit
dbe8f75262
@ -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)/$@.bak
|
||||
$(SED) -i.bak -e '/^\*\*.*by:/d' $(abs_builddir)/$@ && rm $(abs_builddir)/$@.bak
|
||||
$(SED) -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@{.n,}
|
||||
$(SED) -e '/^\*\*.*by:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@{.n,}
|
||||
|
||||
%.moc: %.cpp
|
||||
QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
|
||||
$(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,}
|
||||
|
||||
moc_%.cpp: %.h
|
||||
QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
|
||||
$(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,}
|
||||
|
||||
%.qm: %.ts
|
||||
@test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user