Re: [Fink-devel] setting paths for new users
At first, the script didn't work for me, because I haven't fink installed in /sw. 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 NaefThe 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
Re: [Fink-devel] setting paths for new users
Benjamin Reed wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David R. Morrison wrote: (You'll need to unpack this with Stuffit... what you then get is a double-clickable shell script.) Feedback to the list please. This worked fine for me, although it would be nice if it told you you're already configured if you use a bash shell. When I opened it, it opened the terminal and just gave me a shell with no feedback. Hmm, it should show the following (it does for me): Your environment seems to be correctly set up for Fink already. (You can close this window now) logout [Process completed] Is there something in your .profile that could prevent this text from being shown? -- Martin --- 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
Re: [Fink-devel] setting paths for new users
The script is meant for newbies, for a first-time installation, in this version primarily for distribution with the binary installer. The binary installer installs always into /sw/ (even if /sw may be a symlink to another place). Aha, I didn't realize that. Well, then keep the script as it is, it does the job. - Patrick -- Patrick NaefThe 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 --- 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
Re: [Fink-devel] setting paths for new users
Patrick Näf wrote: At first, the script didn't work for me, because I haven't fink installed in /sw. I can explain why I didn't try to make it work for other situations: The script is meant for newbies, for a first-time installation, in this version primarily for distribution with the binary installer. The binary installer installs always into /sw/ (even if /sw may be a symlink to another place). If the script is eventually distributed with a fink or basefiles tarball, it would be in a *.sh.in form, and there would be a version of inject.pl or setup.sh that changes a BASEPATH placeholder to the actual fink basepath, like for the init.[c]sh scripts. -- Martin --- 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
[Fink-devel] setting paths for new users
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