diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-05-03 18:16:01 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-05-03 18:16:01 +0000 |
commit | 829bcb172ab41ccc399432c1e3f33bdb8af2ceb9 (patch) | |
tree | d56f1a0ff1e50df6e47b3bcbfd3c06556689a4e5 /utils | |
parent | b3bd5ca0fc9bc30d6913442e58aac0f78af2d91b (diff) | |
download | external_llvm-829bcb172ab41ccc399432c1e3f33bdb8af2ceb9.zip external_llvm-829bcb172ab41ccc399432c1e3f33bdb8af2ceb9.tar.gz external_llvm-829bcb172ab41ccc399432c1e3f33bdb8af2ceb9.tar.bz2 |
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
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/GenLibDeps.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/GenLibDeps.pl b/utils/GenLibDeps.pl index 60c291d..6f0b82f 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 <directory_with_libraries_in_it> +# Syntax: GenLibDeps.pl [-flat] <directory_with_libraries_in_it> # # Parse arguments... @@ -76,7 +76,7 @@ sub gen_one_entry { print " <dt><b>$lib</b</dt><dd><ul>\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 (<UNDEFS>) { |