#! /usr/bin/ksh # # Author: Mike Fleming mike@tauzero.co.uk # # fileindex - run the fileindex program # # Uses a config file to index files of interest if [[ "$1" == "" ]] then if [[ -f ./fx.config ]] then FXCONFIG=./fx.config elif [[ -f ~/fx.config ]] then FXCONFIG=~/fx.config else echo No config file specified and no default file exists return 1 fi else if [[ ! -f $1 ]] then echo Config file $1 does not exist return 1 else FXCONFIG=$1 fi fi export FM_CHECK_EXIT=N cobrun fileindex $FXCONFIG