Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CI: Add build matrix * Entryscript: use explicit paths for invocation * Dockerfile: add build args for versions, and install automake and autoconf-archive * Entryscript: don't check sentinel if we're running arbitrary commands * Adjust CI name * Remove QEMU from build/test CI
- Loading branch information
1 parent
acfa79b
commit e88aa45
Showing
3 changed files
with
54 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
SRC=/src | ||
SENTINEL=${SRC}/pyconfig.h.in | ||
|
||
if [ ! -e ${SENTINEL} ]; then | ||
echo "ERROR: ${SENTINEL} not found " | ||
echo "Did you forget to mount Python work directory with '-v.:/src'?" | ||
echo | ||
echo " docker run -v.:/src dongheena/cpython_autoconf" | ||
echo " podman run -v.:/src:Z dongheena/cpython_autoconf" | ||
exit 2 | ||
fi | ||
BIN=/usr/local/bin | ||
AUTOCONF=$BIN/autoconf | ||
AUTORECONF=$BIN/autoreconf | ||
|
||
if [ "$#" = "0" ]; then | ||
echo "Rebuilding configure script using $(autoconf --version | head -n 1)" | ||
exec gosu autoreconf -ivf -Werror $@ | ||
local SENTINEL=/src/pyconfig.h.in | ||
|
||
if [ ! -e ${SENTINEL} ]; then | ||
echo "ERROR: ${SENTINEL} not found " | ||
echo "Did you forget to mount Python work directory with '-v.:/src'?" | ||
echo | ||
echo " docker run -v\$PWD:/src ghcr.io/corona10/cpython_autoconf" | ||
echo " podman run -v\$PWD:/src:Z ghcr.io/corona10/cpython_autoconf" | ||
exit 2 | ||
fi | ||
|
||
echo "Rebuilding configure script using $($AUTOCONF --version | head -n 1)" | ||
exec gosu $AUTORECONF -ivf -Werror $@ | ||
fi | ||
|
||
exec "$@" | ||
exec "$@" |