mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
autogen.sh: don't rely on sed -r
Not all versions of sed has "sed -r", so change it to use basic regular expressions. Furthermore, not all systems support \| in basic regular expressions, to work around it by converting the script names explicitly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
11
autogen.sh
11
autogen.sh
@@ -20,11 +20,14 @@ if test ! x"$autolib" = x; then
|
|||||||
for prg in install-sh compile config.guess config.sub; do
|
for prg in install-sh compile config.guess config.sub; do
|
||||||
# Update autoconf helpers if and only if newer ones are available
|
# Update autoconf helpers if and only if newer ones are available
|
||||||
if test -f "$autolib"/"$prg" && \
|
if test -f "$autolib"/"$prg" && \
|
||||||
( test -f "$autolib"/"$prg" && \
|
( set -e ; \
|
||||||
sed -n -r -e \
|
test -f autoconf/helpers/"$prg" && sed -n \
|
||||||
's/^(scriptver(|sion)|timestamp)=['\''"]?([^'\''"]+).*$/\3/p' \
|
-e 's/^scriptver=/scriptversion=/' \
|
||||||
|
-e 's/^timestamp=/scriptversion=/' \
|
||||||
|
-e 's/^scriptversion=['\''"]?\([^'\''"]*\).*$/\1/p' \
|
||||||
"$autolib"/"$prg" autoconf/helpers/"$prg" | \
|
"$autolib"/"$prg" autoconf/helpers/"$prg" | \
|
||||||
sort --check=quiet; test $? -ne 0 )
|
sort -c 2>/dev/null ; \
|
||||||
|
test $? -ne 0 )
|
||||||
then
|
then
|
||||||
cp -f "$autolib"/"$prg" autoconf/helpers
|
cp -f "$autolib"/"$prg" autoconf/helpers
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user