Changeset 561


Ignore:
Timestamp:
12/16/2011 18:11:35 (5 months ago)
Author:
blee
Message:

Merge fix for #132 into confman-1.9.

Closes #132

Location:
branches/confman-1.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

  • branches/confman-1.9/abspath.in

    r329 r561  
    3939    echo "$dir" 
    4040  else 
    41     dir=`cd $(dirname $file) >/dev/null ; echo \$PWD` 
    42     echo "$dir/$(basename "$file")" 
     41    realpath="$file" 
     42    imagpath="" 
     43    while ! [ -d $realpath ]; do 
     44        imagpath="${imagpath}/${realpath##*/}" 
     45        realpath="${realpath%/*}" 
     46    done 
     47    echo "$(abspath $realpath)${imagpath}" 
    4348  fi 
    4449} 
Note: See TracChangeset for help on using the changeset viewer.