Browse Source

Changed bin/sde-list-files to resolve package names and target names before $PWD relative matches

misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
cb855ab536
1 changed files with 10 additions and 12 deletions
  1. +10
    -12
      bin/sde-list-files

+ 10
- 12
bin/sde-list-files

@ -81,23 +81,21 @@ print_file_root() {
for x; do
y=
if [ -e "$x" ]; then
if [ "${x:0:1}" == "/" ]; then
# absolute
y="$x"
else
# $PWD relative
y="$PWD/$x"
fi
elif [ -e "$SDEROOT/$x" ]; then
# $SDEROOT relative
y="$SDEROOT/$x"
if [ "${x:0:1}" == "/" -a -e "$x" ]; then
# absolute
y="$x"
elif [ -e "$SDEROOT/package"/*/"$x" ]; then
# package name
y=$( echo "$SDEROOT/package"/*/"$x" )
elif [ -e "$SDEROOT/target/$x" ]; then
# package name
# target name
y="$SDEROOT/target/$x"
elif [ -e "$SDEROOT/$x" ]; then
# $SDEROOT relative
y="$SDEROOT/$x"
else [ -e "$x" ]
# $PWD relative
y="$PWD/$x"
fi
# canonicalize

Loading…
Cancel
Save