summaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2008-11-25 16:53:11 +0000
committerfuzzyray <fuzzyray@gentoo.org>2008-11-25 16:53:11 +0000
commita9b20e973b5a1e55cc8372f49c1f17311b3ff318 (patch)
tree9b975bf0bd093f974f471706bc8566bce82d71ce /trunk
parentfa02817a18274f2c7af07032814dc35a2a6daf21 (diff)
downloadgentoolkit-a9b20e973b5a1e55cc8372f49c1f17311b3ff318.tar.gz
Change awk calls to gawk for non-linux system compatibility
svn path=/; revision=522
Diffstat (limited to 'trunk')
-rw-r--r--trunk/ChangeLog5
-rwxr-xr-xtrunk/src/revdep-rebuild/revdep-rebuild8
2 files changed, 9 insertions, 4 deletions
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 <fuzzyray@gentoo.org>
+ * 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 <fuzzyray@gentoo.org>
* 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
}
##