I have taken the liberty to put some stuff into the script so that it now tries to determine the location where fink is installed. This is done in the following order:
1) if a cmdline arg "-l <location>" is specified, it tries this first
2) if not specified or unsuccessful, it tries location /sw
3) if unsuccessful it will search the whole file system tree for possible locations
4) if still unsuccessful it asks the user for a location
If during any of the points 1-4) an executable named <location>/bin/fink is found, the lookup process is stopped and the original script routine is resumed.
Remarks:
1) might be useful if something (e.g. an installer) drives the script
3) this lookup will take quite some time, of course depending on the size of the target system. On my machine it takes ~ 3.5 minutes :-( Maybe a simple progress indicator would be nice :-)
If it is decided to use my additions, it would be a good idea if somebody else had a look at it, although, of course, I have tried to test my stuff as thoroughly as possible. At least for me the script now works. BTW: I'm using bash as my login shell.
Cheers Patrick
pathsetup.command
Description: Binary data
Am Mittwoch, 04.06.03, um 17:34 Uhr (Europe/Zurich) schrieb David R. Morrison:
Many of you will remember the discussions in March and April about somehow
automating the setting of paths for new users.
Martin Costabel has written a nice little app for this purpose (really
a shell script executed by the Terminal). It needs testing (and possibly
critiquing). Let me encourage all fink developers to both try it out,
and read the script.
You can find this in Martin's experimental directory: the path in CVS is
experimental/costabel/pathsetup.command.sit
(You'll need to unpack this with Stuffit... what you then get is a double-clickable shell script.)
Feedback to the list please.
Thanks, Dave
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel
---------------------------------------------------------------------- Patrick Naef "The Queen of Hearts, she made some tarts, Lucerne, Switzerland All on a summer day: [EMAIL PROTECTED] The Knave of Hearts, he stole those tarts, PGP public key: And took them quite away!" http://www.herzbube.ch/Misc/PGPHerzbubeAtHerzbubeDotCH.txt
