build: 'script/guix' uses our own 'guile' executable.

* Makefile.am (do_subst): Substitute @abs_top_builddir@.
* scripts/guix.in: Use it.
This commit is contained in:
Ludovic Courtès 2020-12-07 15:17:22 +01:00
parent d8051557ae
commit fd24754221
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 2 additions and 1 deletions

View file

@ -39,6 +39,7 @@ do_subst = $(SED) \
-e 's,[@]GUILE[@],$(GUILE),g' \ -e 's,[@]GUILE[@],$(GUILE),g' \
-e 's,[@]guilemoduledir[@],$(guilemoduledir),g' \ -e 's,[@]guilemoduledir[@],$(guilemoduledir),g' \
-e 's,[@]guileobjectdir[@],$(guileobjectdir),g' \ -e 's,[@]guileobjectdir[@],$(guileobjectdir),g' \
-e 's,[@]abs_top_builddir[@],$(abs_top_builddir),g' \
-e 's,[@]localedir[@],$(localedir),g' -e 's,[@]localedir[@],$(localedir),g'
scripts/guix: scripts/guix.in Makefile scripts/guix: scripts/guix.in Makefile

View file

@ -1,4 +1,4 @@
#!@GUILE@ \ #!@abs_top_builddir@/guile \
--no-auto-compile -e main -s --no-auto-compile -e main -s
!# !#
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU