Changeset 1073


Ignore:
Timestamp:
May 22, 2008, 11:33:51 AM (10 years ago)
Author:
Daniel Kahn Gillmor
Message:

inkscapeaccumulate: cope with the lack of /bin/readlink on mac os x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/osxtools/inkscapeaccumulate/createyearbookpngs

    r469 r1073  
    3434for foo in "$1"/*; do
    3535    if [ -L "$foo" ] ; then
    36         targ=$(readlink "$foo")
     36        if (which readlink >/dev/null); then
     37            targ=$(readlink "$foo")
     38        else
     39            targ=$(ls -l "$foo" | sed 's/.* -> //')
     40        fi
    3741    elif [ -d "$foo" ] ; then
    3842        targ="$foo"
Note: See TracChangeset for help on using the changeset viewer.