]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
New script for building inside Guix containers.
authorZack Weinberg <zackw@panix.com>
Thu, 30 Mar 2023 14:50:36 +0000 (10:50 -0400)
committerZack Weinberg <zackw@panix.com>
Sun, 2 Apr 2023 13:17:57 +0000 (09:17 -0400)
build-aux/test-build-guix, goes with the top level manifest.scm.
See the top of the file for usage instructions.

build-aux/test-build-guix [new file with mode: 0755]

diff --git a/build-aux/test-build-guix b/build-aux/test-build-guix
new file mode 100755 (executable)
index 0000000..4470af9
--- /dev/null
@@ -0,0 +1,30 @@
+#! /bin/sh
+
+# From a pristine Git checkout, run
+#  guix shell --container --manifest=manifest.scm -- build-aux/test-build-guix
+# to perform a complete bootstrap and test build of Autoconf.
+
+set -ex
+
+# Guix bug? /bin/sh is usually *not* the shell specified in the manifest.
+SHELL="$(command -v sh)"
+export SHELL
+if [ "$(realpath /bin/sh)" != "$(realpath "$SHELL")" ]; then
+    (
+        cd /bin
+        rm sh
+        ln -s "$SHELL" sh
+    )
+    exec "$SHELL" "$0" "$@"
+fi
+
+./bootstrap
+if [ -d _build ]; then
+    rm -rf _build/*
+else
+    mkdir _build
+fi
+cd _build
+../configure
+make all info pdf dvi
+make distcheck