From 829bcb172ab41ccc399432c1e3f33bdb8af2ceb9 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 3 May 2006 18:16:01 +0000 Subject: [PATCH] Attempt to get this script working on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28085 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/GenLibDeps.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/GenLibDeps.pl b/utils/GenLibDeps.pl index 60c291d9456..6f0b82fd67d 100755 --- a/utils/GenLibDeps.pl +++ b/utils/GenLibDeps.pl @@ -6,7 +6,7 @@ # libraries. The output of this script should periodically replace # the similar content in the UsingLibraries.html document. # -# Syntax: GenLibDeps.pl +# Syntax: GenLibDeps.pl [-flat] # # Parse arguments... @@ -76,7 +76,7 @@ sub gen_one_entry { print "
$lib
    \n"; } open UNDEFS, - "nm -g -u $Directory/$lib | grep ' U ' | sed -e 's/ U //' | sort | uniq |"; + "nm -g -u $Directory/$lib | sed -e 's/^ *U //' | sort | uniq |"; open DEPENDS, "| sort | uniq > GenLibDeps.out"; while () {