mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-18 18:50:23 +08:00
autogen: add --cleanenv option and use it in the release script
Make sure we don't pick up any local things from the environment. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
8ce37daeea
commit
ea49bac9b9
18
autogen.sh
18
autogen.sh
@ -3,10 +3,20 @@
|
||||
# Run this script to regenerate autoconf files
|
||||
#
|
||||
recheck=false
|
||||
if [ x"$1" = x--recheck ]; then
|
||||
recheck=true
|
||||
config=$(sh config.status --config 2>/dev/null)
|
||||
fi
|
||||
for arg; do
|
||||
case x"$arg" in
|
||||
x--recheck)
|
||||
recheck=true
|
||||
config=$(sh config.status --config 2>/dev/null)
|
||||
;;
|
||||
x--clearenv)
|
||||
unset AUTOCONF AUTOMAKE ACLOCAL AUTOHEADER ACLOCAL_PATH
|
||||
;;
|
||||
*)
|
||||
echo "$0: unknown option: $arg" 1>&2
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# This allows for overriding the default autoconf programs
|
||||
AUTOCONF="${AUTOCONF:-${AUTOTOOLS_PREFIX}autoconf}"
|
||||
|
@ -27,7 +27,7 @@ if [ x`cat version` != x"${version}" ]; then
|
||||
git update-index version
|
||||
git commit -m "Version ${version}" -- version
|
||||
fi
|
||||
git tag -m "NASM version ${version}" -f "nasm-${version}"
|
||||
git tag -m "NASM version ${version}" -f "nasm-${version}"
|
||||
|
||||
cd "$WHERE"
|
||||
rm -rf nasm-release.*
|
||||
@ -43,7 +43,7 @@ makej="${makej:-make}"
|
||||
|
||||
# Create files which are in the release but automatically generated
|
||||
cd nasm
|
||||
./autogen.sh
|
||||
./autogen.sh --clearenv
|
||||
./configure --prefix=/usr/local
|
||||
$makej perlreq spec manpages
|
||||
$makej alldeps
|
||||
|
Loading…
x
Reference in New Issue
Block a user