[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposed file structure changes



Ok, after chasing require and eval statements around the code and
chatting with Chris about it, I've decided that this change will wait
until after 1.1.0. I think I'll be able to do it easily enough, but
there are some odditites in the code that are a bit troublesome. So, I
hope by waiting to commit these changes right after the 1.1.0 release,
I'll have some more time (and hopefully more people) to test these
changes.

Cheers,

Chris

On 9/12/06, Christopher Murtagh <..hidden..> wrote:
 Here's what I'm thinking

 I'm going to remove the bin directory, and drop all the [a-z][a-z].pl
files in place at the root level. At the moment, the normal code
execution is the top level 'am.pl' gets called, which requires menu.pl
and then it in turn requires 'bin/mozilla/am.pl'. This will change so
that am.pl will still execute the code from menu.pl and then continue
on within the same file. (all files except for menu.pl are identical
in bin/mozilla and bin/lynx).

 For custom scripts, I will create a custom directory, and provide an
upgrade script from the current setup to the new one. Custom scripts
are currently of the form 'bin/mozilla/custom_am.pl', and will become
'custom/am.pl'.

 For user based custom scripts, they will also go into the custom
directory, and simply be called 'username_am.pl'.

 The result of this cleanup is far fewer files (many of which are
dupes of each other), fewer hits to the file system for every page
load, and a simpler, clearer setup.

The only script that poses any sort of problem (and it's actually
trivial to solve) is the menu.pl script which is different in
bin/mozilla and bin/lynx. This will simply have a big
if('lynx'){..}else{} for the moment, but will probably get cleaned up
and re-org'd later as well.

Any concerns, thoughts or objections before I proceed?

Cheers,

Chris