cisco / ChezScheme

Chez Scheme
Apache License 2.0
6.89k stars 983 forks source link

change default install of bin files to be soft links to lib files #777

Closed mflatt closed 7 months ago

mflatt commented 7 months ago

Unless configured with --installabsolute, install "scheme", "petite", and "scheme-script" as soft links to executables in the library directory that contains boot files. That way, multiple versions can be installed easily by referencing executables inthe library directory.

Configuring with --installabsolute, which already restored the old boot search-path default, also restores the old installation behavior.

burgerrg commented 7 months ago

Do you think it would be better to use the fixed names scheme, petite, and scheme-script in the Lib directory, and use the specified names for the symbolic links? I'm thinking about the code I'll write to find the executables for a particular version in the lib tree.

mflatt commented 7 months ago

I don't think it works to use different names for the "lib" files and "bin" links, because whichever name you use to start the process will be the name used to find the corresponding boot file(s).

My guess is that your script to find executables will need to make some assumptions about the configuration, anyway. Or maybe there's a place we could record a configuration so that the script can find things?

burgerrg commented 7 months ago

You're right, I didn't think about the boot file naming. It's fine to use the same name. The systems I use don't change the default names.