Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 1 | From 8babe5f2ccb73cc574933743b381557a4db02424 Mon Sep 17 00:00:00 2001 |
| 2 | From: Zack Weinberg <zackw@panix.com> |
| 3 | Date: Thu, 30 Mar 2023 10:50:36 -0400 |
| 4 | Subject: [PATCH 08/29] New script for building inside Guix containers. |
| 5 | |
| 6 | build-aux/test-build-guix, goes with the top level manifest.scm. |
| 7 | See the top of the file for usage instructions. |
| 8 | |
| 9 | Upstream-Status: Backport |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | build-aux/test-build-guix | 30 ++++++++++++++++++++++++++++++ |
| 13 | 1 file changed, 30 insertions(+) |
| 14 | create mode 100755 build-aux/test-build-guix |
| 15 | |
| 16 | diff --git a/build-aux/test-build-guix b/build-aux/test-build-guix |
| 17 | new file mode 100755 |
| 18 | index 000000000..4470af9b7 |
| 19 | --- /dev/null |
| 20 | +++ b/build-aux/test-build-guix |
| 21 | @@ -0,0 +1,30 @@ |
| 22 | +#! /bin/sh |
| 23 | + |
| 24 | +# From a pristine Git checkout, run |
| 25 | +# guix shell --container --manifest=manifest.scm -- build-aux/test-build-guix |
| 26 | +# to perform a complete bootstrap and test build of Autoconf. |
| 27 | + |
| 28 | +set -ex |
| 29 | + |
| 30 | +# Guix bug? /bin/sh is usually *not* the shell specified in the manifest. |
| 31 | +SHELL="$(command -v sh)" |
| 32 | +export SHELL |
| 33 | +if [ "$(realpath /bin/sh)" != "$(realpath "$SHELL")" ]; then |
| 34 | + ( |
| 35 | + cd /bin |
| 36 | + rm sh |
| 37 | + ln -s "$SHELL" sh |
| 38 | + ) |
| 39 | + exec "$SHELL" "$0" "$@" |
| 40 | +fi |
| 41 | + |
| 42 | +./bootstrap |
| 43 | +if [ -d _build ]; then |
| 44 | + rm -rf _build/* |
| 45 | +else |
| 46 | + mkdir _build |
| 47 | +fi |
| 48 | +cd _build |
| 49 | +../configure |
| 50 | +make all info pdf dvi |
| 51 | +make distcheck |
| 52 | -- |
| 53 | 2.41.0 |
| 54 | |