Changes between Version 8 and Version 9 of ProblemHotlist


Ignore:
Timestamp:
Oct 18, 2006, 7:19:04 AM (18 years ago)
Author:
takanori@…
Comment:

A little enhancement.

Legend:

Unmodified
Added
Removed
Modified
  • ProblemHotlist

    v8 v9  
    1212{{{
    1313#!/bin/bash
    14 for file in `find /opt/local/lib -name *.dylib`; do
    15   # Skip this match if it's a symbolic link
    16   if [[ ! -h $file ]]; then
    17     # Look for references to the missing library
    18     otool -L $file | grep --silent $1
    19     if [[ "$?" == "0" ]]; then
    20       port provides `echo $file`
    21     fi
    22   fi
     14if test -z "$1"; then
     15  echo "usage: $0 <libname>"
     16  exit 1
     17fi
     18for file in `find /opt/local/lib -name *.dylib; find /opt/local/bin`; do
     19  # Skip this match if it's a symbolic link
     20  if test -f $file -a ! -L $file; then
     21    # Look for references to the missing library
     22    otool -L $file | grep --silent $1
     23    if test "$?" = "0"; then
     24      port provides `echo $file`
     25    fi
     26  fi
    2327# Grab the name of the port and make sure to list each port just once
    2428done | awk -F: ' { print $2 } ' | sort | uniq