mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-21 16:39:37 +00:00
There's no longer any reason to require GNU awk:
- the only part that required it (socks proxy settings) is gone, - all remaining awk scripts are POSIXly correct (or should be). -------- diffstat follows -------- /trunk/configure | 5 2 3 0 ++--- /trunk/Makefile.in | 2 0 2 0 -- /trunk/scripts/build/kernel/linux.sh | 2 1 1 0 +- /trunk/scripts/build/internals.sh | 1 0 1 0 - /trunk/scripts/build/mpfr.sh | 2 1 1 0 +- /trunk/scripts/functions | 4 2 2 0 ++-- /trunk/scripts/saveSample.sh.in | 4 2 2 0 ++-- 7 files changed, 8 insertions(+), 12 deletions(-)
This commit is contained in:
@ -51,7 +51,6 @@ install:= @@install@@
|
|||||||
bash := @@bash@@
|
bash := @@bash@@
|
||||||
grep := @@grep@@
|
grep := @@grep@@
|
||||||
make := @@make@@
|
make := @@make@@
|
||||||
awk := @@awk@@
|
|
||||||
sed := @@sed@@
|
sed := @@sed@@
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@ -139,7 +138,6 @@ paths.mk:
|
|||||||
echo "export bash=$(bash)"; \
|
echo "export bash=$(bash)"; \
|
||||||
echo "export grep=$(grep)"; \
|
echo "export grep=$(grep)"; \
|
||||||
echo "export make=$(make)"; \
|
echo "export make=$(make)"; \
|
||||||
echo "export awk=$(awk)"; \
|
|
||||||
echo "export sed=$(sed)"; \
|
echo "export sed=$(sed)"; \
|
||||||
) >paths.mk
|
) >paths.mk
|
||||||
|
|
||||||
|
5
configure
vendored
5
configure
vendored
@ -4,9 +4,8 @@ VERSION=$( cat .version )
|
|||||||
DATE=$( date +%Y%m%d )
|
DATE=$( date +%Y%m%d )
|
||||||
|
|
||||||
# All absolutely required tools, one per line to ease diff.
|
# All absolutely required tools, one per line to ease diff.
|
||||||
# See function 'has_or_abort, below, for syntax
|
# See function 'has_or_abort', below, for syntax
|
||||||
# - Hopefully, if gcc is present, then all associated tools will be
|
# - Hopefully, if gcc is present, then all associated tools will be
|
||||||
# - awk must be GNU awk
|
|
||||||
# - makeinfo for building docs, even if discarded later on
|
# - makeinfo for building docs, even if discarded later on
|
||||||
# - others obvious... :-/
|
# - others obvious... :-/
|
||||||
#
|
#
|
||||||
@ -44,7 +43,7 @@ xargs
|
|||||||
install:install=GNU coreutils
|
install:install=GNU coreutils
|
||||||
make:make=^GNU Make
|
make:make=^GNU Make
|
||||||
gcc
|
gcc
|
||||||
awk:awk=^GNU Awk || gawk=^GNU Awk
|
awk
|
||||||
bison
|
bison
|
||||||
flex
|
flex
|
||||||
makeinfo
|
makeinfo
|
||||||
|
@ -18,7 +18,6 @@ do_finish() {
|
|||||||
-e 's|@@CT_bash@@|'"${bash}"'|g;' \
|
-e 's|@@CT_bash@@|'"${bash}"'|g;' \
|
||||||
-e 's|@@CT_grep@@|'"${grep}"'|g;' \
|
-e 's|@@CT_grep@@|'"${grep}"'|g;' \
|
||||||
-e 's|@@CT_make@@|'"${make}"'|g;' \
|
-e 's|@@CT_make@@|'"${make}"'|g;' \
|
||||||
-e 's|@@CT_awk@@|'"${awk}"'|g;' \
|
|
||||||
-e 's|@@CT_sed@@|'"${sed}"'|g;' \
|
-e 's|@@CT_sed@@|'"${sed}"'|g;' \
|
||||||
"${CT_LIB_DIR}/scripts/populate.in" \
|
"${CT_LIB_DIR}/scripts/populate.in" \
|
||||||
>"${CT_PREFIX_DIR}/bin/${CT_TARGET}-populate"
|
>"${CT_PREFIX_DIR}/bin/${CT_TARGET}-populate"
|
||||||
|
@ -47,7 +47,7 @@ do_kernel_install() {
|
|||||||
|
|
||||||
# Only starting with 2.6.18 does headers_install is usable. We only
|
# Only starting with 2.6.18 does headers_install is usable. We only
|
||||||
# have 2.6 version available, so only test for sublevel.
|
# have 2.6 version available, so only test for sublevel.
|
||||||
k_sublevel=$("${awk}" '/^SUBLEVEL =/ { print $3 }' "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}/Makefile")
|
k_sublevel=$(awk '/^SUBLEVEL =/ { print $3 }' "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}/Makefile")
|
||||||
[ ${k_sublevel} -ge 18 ] || CT_Abort "Kernel version >= 2.6.18 is needed to install kernel headers."
|
[ ${k_sublevel} -ge 18 ] || CT_Abort "Kernel version >= 2.6.18 is needed to install kernel headers."
|
||||||
|
|
||||||
V_OPT="V=${CT_KERNEL_LINUX_VERBOSE_LEVEL}"
|
V_OPT="V=${CT_KERNEL_LINUX_VERBOSE_LEVEL}"
|
||||||
|
@ -42,7 +42,7 @@ do_mpfr_extract() {
|
|||||||
# See: http://sourceware.org/ml/crossgcc/2008-11/msg00046.html
|
# See: http://sourceware.org/ml/crossgcc/2008-11/msg00046.html
|
||||||
# and: http://sourceware.org/ml/crossgcc/2008-11/msg00048.html
|
# and: http://sourceware.org/ml/crossgcc/2008-11/msg00048.html
|
||||||
libtoolize_opt=
|
libtoolize_opt=
|
||||||
case "$(libtoolize --version |head -n 1 |"${awk}" '{ print $(NF); }')" in
|
case "$(libtoolize --version |head -n 1 |awk '{ print $(NF); }')" in
|
||||||
0.*) ;;
|
0.*) ;;
|
||||||
1.*) ;;
|
1.*) ;;
|
||||||
*) libtoolize_opt=-i;;
|
*) libtoolize_opt=-i;;
|
||||||
|
@ -743,8 +743,8 @@ CT_DoSaveState() {
|
|||||||
CT_DoLog DEBUG " Saving environment and aliases"
|
CT_DoLog DEBUG " Saving environment and aliases"
|
||||||
# We must omit shell functions, and some specific bash variables
|
# We must omit shell functions, and some specific bash variables
|
||||||
# that break when restoring the environment, later. We could do
|
# that break when restoring the environment, later. We could do
|
||||||
# all the processing in the gawk script, but a sed is easier...
|
# all the processing in the awk script, but a sed is easier...
|
||||||
set |"${awk}" '
|
set |awk '
|
||||||
BEGIN { _p = 1; }
|
BEGIN { _p = 1; }
|
||||||
$0~/^[^ ]+ \(\)/ { _p = 0; }
|
$0~/^[^ ]+ \(\)/ { _p = 0; }
|
||||||
_p == 1
|
_p == 1
|
||||||
|
@ -78,8 +78,8 @@ fi
|
|||||||
CT_DoAddFileToSample() {
|
CT_DoAddFileToSample() {
|
||||||
source="$1"
|
source="$1"
|
||||||
dest="$2"
|
dest="$2"
|
||||||
inode_s=$(ls -i "${source}" |"${awk}" '{ print $1; }')
|
inode_s=$(ls -i "${source}" |awk '{ print $1; }')
|
||||||
inode_d=$(ls -i "${dest}" 2>/dev/null |"${awk}" '{ print $1; }' || true)
|
inode_d=$(ls -i "${dest}" 2>/dev/null |awk '{ print $1; }' || true)
|
||||||
if [ "${inode_s}" != "${inode_d}" ]; then
|
if [ "${inode_s}" != "${inode_d}" ]; then
|
||||||
cp "${source}" "${dest}"
|
cp "${source}" "${dest}"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user