On Sat, Mar 23, 2002 at 09:10:46AM -0500, C. Posey wrote:

> Sorry for the bad programming - I am not a programmer. Anyway - what
> I discovered is that Sitescooper is identifying the OS X system as
> running Win32. This of course will not work.

        I am suspecting that the operating system name that perl sees
        on OSX is something like "darwin".  You can verify this by
        typing at your shell prompt (%):

% perl -e 'print "$^O\n"'

        If this is indeed the case, change the first "if" statement in
        the lib/Sitescooper/Main.pm, line 2870 in my copy, as follows:

  if ($os=~/(?!dar)win/i) {

        and you should be set.  You're just adding the "(?!dar)"
        before the "win" which says to match the string "win" as long
        as its not preceeded by "dar" (e.g. matches windows, but not
        darwin).

        Justin: I'd also propose that this change make it into the
        Sitescooper CVS as the final version of this test:

  if ($os=~/(?!dar|cyg)win/i) {

        Since cygwin is also more of a UNIX-like environment than a
        Windows-like one.  I'd be interested to hear if anyone has
        gotten Sitescooper working properly under cygwin; I've spent a
        couple of hours on it but its not quite right.

-- 
Caleb Epstein |  bklyn . org  |   You can tell how far we have to go, when
    cae at    | Brooklyn Dust |   FORTRAN is the language of supercomputers.
bklyn dot org |   Bunny Mfg.  |                 -- Steven Feiner

_______________________________________________
Sitescooper-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sitescooper-talk

Reply via email to