1
Fork 0
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:
Jonas Hahnfeld 2024-02-22 21:57:41 +01:00 committed by Ludovic Courtès
parent f27e8b855f
commit ebcc9d1e3a
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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.