diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-10-20 22:19:24 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-10-22 20:35:15 -0400 |
| commit | 4cf4dcb8b31274a8dfba6bae3a6826a1b521da3f (patch) | |
| tree | a509036dc73ff679b6c6c5700bfbb60c26f92e09 | |
| parent | 85f934ccffbdc63f60633f1768fceb275a4e8252 (diff) | |
teams: Adjust shebang to use 'guix repl'.
This ensures the correct Guix dependencies are always available for the
script.
* etc/teams.scm.in: Rename to...
* etc/teams.scm: ... this. Adjust shebang.
* .gitignore: No longer ignore it.
* configure.ac: Do not process it with AC_CONFIG_FILES.
Reported-by: Clément Lassieur <clement@lassieur.org>
Fixes: https://issues.guix.gnu.org/66605
Change-Id: I7a01750c6c5f0696b6c36b1e6caa9389d9e6822c
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | configure.ac | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | etc/teams.scm (renamed from etc/teams.scm.in) | 8 |
3 files changed, 6 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore index 543dc1c6559..0f74b5da3d0 100644 --- a/.gitignore +++ b/.gitignore | |||
| @@ -68,7 +68,6 @@ | |||
| 68 | /doc/version.texi | 68 | /doc/version.texi |
| 69 | /doc/version-*.texi | 69 | /doc/version-*.texi |
| 70 | /etc/committer.scm | 70 | /etc/committer.scm |
| 71 | /etc/teams.scm | ||
| 72 | /etc/gnu-store.mount | 71 | /etc/gnu-store.mount |
| 73 | /etc/guix-daemon.cil | 72 | /etc/guix-daemon.cil |
| 74 | /etc/guix-daemon.conf | 73 | /etc/guix-daemon.conf |
diff --git a/configure.ac b/configure.ac index d817f620cfe..ecbd596a34f 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -281,7 +281,6 @@ AC_CONFIG_FILES([Makefile | |||
| 281 | guix/config.scm]) | 281 | guix/config.scm]) |
| 282 | 282 | ||
| 283 | AC_CONFIG_FILES([etc/committer.scm], [chmod +x etc/committer.scm]) | 283 | AC_CONFIG_FILES([etc/committer.scm], [chmod +x etc/committer.scm]) |
| 284 | AC_CONFIG_FILES([etc/teams.scm], [chmod +x etc/teams.scm]) | ||
| 285 | AC_CONFIG_FILES([test-env:build-aux/test-env.in], [chmod +x test-env]) | 284 | AC_CONFIG_FILES([test-env:build-aux/test-env.in], [chmod +x test-env]) |
| 286 | AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in], | 285 | AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in], |
| 287 | [chmod +x pre-inst-env]) | 286 | [chmod +x pre-inst-env]) |
diff --git a/etc/teams.scm.in b/etc/teams.scm index 703d76fe8de..f3d4c731322 100644..100755 --- a/etc/teams.scm.in +++ b/etc/teams.scm | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | #!@GUILE@ \ | 1 | #!/bin/sh |
| 2 | --no-auto-compile -s | 2 | # Extra care is taken here to ensure this script can run in most environments, |
| 3 | # since it is invoked by 'git send-email'. | ||
| 4 | pre_inst_env_maybe= | ||
| 5 | command -v guix > /dev/null || pre_inst_env_maybe=./pre-inst-env | ||
| 6 | exec $pre_inst_env_maybe guix repl -- "$0" "$@" | ||
| 3 | !# | 7 | !# |
| 4 | 8 | ||
| 5 | ;;; GNU Guix --- Functional package management for GNU | 9 | ;;; GNU Guix --- Functional package management for GNU |
