From: fuzzyray Date: Tue, 25 Nov 2008 16:53:11 +0000 (-0000) Subject: Change awk calls to gawk for non-linux system compatibility X-Git-Tag: gentoolkit-0.2.4.3^2~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9b20e973b5a1e55cc8372f49c1f17311b3ff318;p=gentoolkit.git Change awk calls to gawk for non-linux system compatibility svn path=/; revision=522 --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 349a992..f9605ad 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,8 @@ +2008-11-25: Paul Varner + * revdep-rebuild: Fixes for non-linux Gentoo systems. Add patch from + igli to fix find command to comply with POSIX. Change awk calls to + gawk. + 2008-11-11: Paul Varner * echangelog: Add --strict option (Bug 246242). * echangelog: Fix processing of virtual category (Bug 179530) diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index 315f31c..612f4cd 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -224,7 +224,7 @@ countdown() { # Replace whitespace with linebreaks, normalize repeated '/' chars, and sort -u # (If any libs have whitespace in their filenames, someone needs punishment.) clean_var() { - awk 'BEGIN {RS="[[:space:]]"} + gawk 'BEGIN {RS="[[:space:]]"} /-\*/ {exit} /[^[:space:]]/ {gsub(/\/\/+/, "/"); print}' | sort -u } @@ -738,7 +738,7 @@ main_checks() { elif [[ $SEARCH_BROKEN ]]; then # Look for broken .la files for depend in $( - awk -F"[=']" '/^dependency_libs/{ + gawk -F"[=']" '/^dependency_libs/{ gsub("^-[^[:space:]]*", "", $3); gsub("[[:space:]]-[^[:space:]]*", "", $3); print $3 @@ -762,7 +762,7 @@ main_checks() { done < <( # Regexify LD_LIBRARY_MASK. Exclude it from the search. LD_LIBRARY_MASK="${LD_LIBRARY_MASK//$'\n'/|}" - awk -v ldmask="(${LD_LIBRARY_MASK//./\\\.})" ' + gawk -v ldmask="(${LD_LIBRARY_MASK//./\\\.})" ' /no version information available/ && $0 !~ ldmask { gsub(/[()]/, "", $NF) if (seen[$NF]++) next @@ -947,7 +947,7 @@ show_unowned_files() { ewarn "The broken files are:" while read filename junk; do [[ $junk = *none* ]] && ewarn " $filename" - done < "$OWNERS_FILE" | awk '!s[$0]++' # (omit dupes) + done < "$OWNERS_FILE" | gawk '!s[$0]++' # (omit dupes) fi } ##