[GRASS-dev] some GRASS source and packaging observations and questions

William Kyngesburye woklist at kyngchaos.com
Sat Dec 16 15:39:19 EST 2006


On Dec 16, 2006, at 7:25 AM, Glynn Clements wrote:

>> - bin/scripts - I'm curious if there is a practical reason to
>> separate compiled progs and scripts into bin and scripts folders?
>> Maybe some have the scripts folder name hardcoded in them for some
>> reason, or maybe in the GUI?
>>
>> Basically they are all executables, and it adds another path item
>> needed in the PATH env.  (And I need to deal with a possible/rare
>> case-sensitivity problem in a Mac app package between 'scripts' and
>> 'Scripts'.)
>
> Until recently, there wasn't any compelling reason for having separate
> directories.
>
> However, Paul Kelly recently figured out a simple and effective way to
> make Bourne-shell scripts work natively on Windows: for each script,
> install a corresponding .bat file (in the bin directory) which
> explicitly invokes the shell on the script (in the scripts directory).
>
> In that situation, it makes sense to have separate directories, as the
> scripts are essentially data files (for use by the shell interpreter)
> rather than executables in their own right. Only the bin directory is
> added to the path.

I noticed the discusion on that, just didn't pay attention to it ^_^

There are explicit references to scripts in init.sh - for checking  
the availability of the GUIs before trying to start them.  I guess  
that means I'll leave scripts in Scripts for now and my new OSX  
GRASS.app startup won't run on a case-sensitive Mac file-system.   
But, running anything on a Mac case-sensitive file system in  
generally not recommended.  Heck, using a case-sensitive HFS+ or UFS  
on OSX at all is not recommended.

-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/

[Trillian]  What are you supposed to do WITH a maniacally depressed  
robot?

[Marvin]  You think you have problems?  What are you supposed to do  
if you ARE a maniacally depressed robot?  No, don't try and answer,  
I'm 50,000 times more intelligent than you and even I don't know the  
answer...

- HitchHiker's Guide to the Galaxy




-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those  
least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy





More information about the grass-dev mailing list