Angus Leeming wrote: > The attached patch enables us to move XFig files to the temp directory and > continue to generate DVI files, etc that show any included picture files. > > The next step is to add an ability to iterate over the specialized copier > functions and ascertain which ones have been added and which ones have > been removed from the system defaults. Oh, and add stuff to the > Preferences dialog to enable users to add and remove 'em. > > I won't apply this until I've finished the stuff above, but it now works > as-is. Perhaps someone else would like to test it out? > > The patch also 'fixes' Jean-Marc's additions of quotes so that execvp > doesn't fall over immediately. Certainly, preview is working again, but > the 'fix' is clearly less than sophisticated. > > I'll apply this last bit soon if there's no objection. > > As ever, all suggestions are welcome ;-) > > Incidentaly, is there a more elegant (shell script) way to ascertain > whether two directories are the same than: > > # If the "to" and the "from" files are in the same directory, > # then we're done. > PRESENT_DIR=`pwd` > cd `dirname "$1"` > FROM_DIR=`pwd` > > cd `dirname "$2"` > TO_DIR=`pwd` > > cd $PRESENT_DIR > test "$FROM_DIR" = "$TO_DIR" && exit 0
what about [ `dirname "$1"` -ef `dirname "$2"` ] ? No idea about portability and such. HTH, Alfredo