Skip to content

Commit

Permalink
Entryscript: don't check sentinel if we're running arbitrary commands
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Mar 3, 2024
1 parent 3600ba7 commit 1ecba06
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions entry.sh
@@ -1,22 +1,22 @@
#!/bin/sh
set -e

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

BIN=/usr/local/bin
AUTOCONF=$BIN/autoconf
AUTORECONF=$BIN/autoreconf

if [ "$#" = "0" ]; then
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
Expand Down

0 comments on commit 1ecba06

Please sign in to comment.