mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
build: Make sed invocation fully portable
Commit 08041d216f
attempted to make the "invocation compatible with
BSD sed", but moving '-i' first does not solve the problem because
it still requires to pass an argument. Instead just redirect the
instantiated output into a temporary file and install that.
* libguile/Makefile.am: Remove '-i' from INSTANTIATE.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
f27e8b855f
commit
ebcc9d1e3a
1 changed files with 6 additions and 6 deletions
|
@ -492,7 +492,7 @@ install-exec-hook:
|
|||
|
||||
## Instantiate a template.
|
||||
INSTANTIATE = \
|
||||
$(SED) -i -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
|
||||
$(SED) -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
|
||||
-e 's,[@]pkglibdir[@],$(pkglibdir),g' \
|
||||
-e 's,[@]GUILE_EFFECTIVE_VERSION[@],$(GUILE_EFFECTIVE_VERSION),g'
|
||||
|
||||
|
@ -518,9 +518,9 @@ install-data-hook: libguile-@GUILE_EFFECTIVE_VERSION@-gdb.scm
|
|||
cd $$here; \
|
||||
echo " $(INSTALL_DATA) $< \
|
||||
$(DESTDIR)$(libdir)/$$libname-gdb.scm"; \
|
||||
$(INSTALL_DATA) "$<" \
|
||||
"$(DESTDIR)$(libdir)/$$libname-gdb.scm"; \
|
||||
$(INSTANTIATE) "$(DESTDIR)$(libdir)/$$libname-gdb.scm"
|
||||
$(INSTANTIATE) "$<" > $$libname-gdb.scm; \
|
||||
$(INSTALL_DATA) $$libname-gdb.scm \
|
||||
"$(DESTDIR)$(libdir)/$$libname-gdb.scm";
|
||||
|
||||
# Remove the GDB support file and the Info 'dir' file that
|
||||
# 'install-info' 5.x installs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue