[BACK]Return to locate CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / pari / config

File: [local] / OpenXM_contrib / pari / config / Attic / locate (download)

Revision 1.1, Sun Jan 9 17:35:29 2000 UTC (24 years, 5 months ago) by maekawa
Branch: MAIN

Initial revision

#!/bin/sh
t=$1; shift; dflt=$1; shift

for dir in $*; do
  file=$dir/$t
  if test -f $file; then
    echo $file; exit 0
  fi
  if test -f $file.exe; then
    echo $file.exe; exit 0
  fi
done
echo $dflt; exit 1