- Timestamp:
- 08/21/2011 15:27:25 (9 months ago)
- File:
-
- 1 edited
-
trunk/abspath.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/abspath.in
r521 r533 39 39 echo "$dir" 40 40 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}" 43 48 fi 44 49 }
Note: See TracChangeset
for help on using the changeset viewer.
