FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython-devcontainers/autoconf/entry.sh at main · python/cpython-devcontainers · GitHub
python
cpython-devcontainers
Repository navigation
Code
Issues
2
(2)
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython-devcontainers
/
autoconf
/
entry.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
36 lines (30 loc) · 1.06 KB
Breadcrumbs
cpython-devcontainers
/
autoconf
/
entry.sh
Copy path
File metadata and controls
executable file
·
36 lines (30 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!
/bin/sh
set
-e
export
CONFIG_SHELL=
"
/usr/bin/bash
"
BIN=/usr/local/bin
AUTOCONF=
$BIN
/autoconf
AUTORECONF=
$BIN
/autoreconf
if
[
"
$#
"
=
"
0
"
]
;
then
#
This is the same sentinel used for AC_CONFIG_SRCDIR in CPython's
#
configure.ac.
SENTINEL=/src/Include/object.h
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/python/cpython-autoconf
"
echo
"
podman run -v
\$
PWD:/src:Z ghcr.io/python/cpython-autoconf
"
exit
2
fi
echo
"
Rebuilding configure script using
$(
$AUTOCONF
--version
|
head -n 1
)
"
set
-x
#
autoreconf's '--force' option doesn't affect any of the files installed
#
by the '--install' option. Remove the files to truly force them to be
#
updated so that the CPython repo doesn't drift from this repo.
rm -f /src/aclocal.m4
rm -f /src/config.guess
rm -f /src/config.sub
rm -f /src/install-sh
exec
$AUTORECONF
-ivf -Werror
$@
fi
exec
"
$@
"
Back
|
FazBrowse Home
|
New Git URL