diff options
| author | Fabian Raetz <[email protected]> | 2014-05-02 21:32:12 +0200 |
|---|---|---|
| committer | Fabian Raetz <[email protected]> | 2014-05-02 21:32:12 +0200 |
| commit | dbe8f7526266092fe7b045dadaefb753feca15a6 (patch) | |
| tree | c5ff2067fb0f3c82d5df4db8beda5905655c3c06 /src/Makefile.include | |
| parent | stop bitcoind/bitcoin-cli processes that might have been left running (diff) | |
| download | discoin-dbe8f7526266092fe7b045dadaefb753feca15a6.tar.xz discoin-dbe8f7526266092fe7b045dadaefb753feca15a6.zip | |
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/Makefile.include')
| -rw-r--r-- | src/Makefile.include | 12 |
1 files changed, 6 insertions, 6 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) |