#45 Guido setup does not recognize cygwin

next_release
open
nobody
5
2005-05-23
2005-05-23
Anonymous
No

When asking for a path to install Guido, on cygwin it says
'Unable to recognize operating system, using fallback
installation directory...'.

If I look at the code,

if($Config{osname} eq 'linux') {
$install_dir = DEF_LINUX_INSTALL_DIR . $package_name;
}
elsif ($Config{osname} eq 'MSWin32') {
$install_dir = DEF_WIN32_INSTALL_DIR . $package_name;
}
else {
print "Unable to recognize operating system, using
fallback installation dir
ectory...\n";
$install_dir = DEF_INSTALL_DIR . $package_name;
}

I would suggest using a hash with several entries, eg.
linux, cygwin, MSWin32, solaris, etc....

That way, Guido can become truly cross-platform.

Discussion

  • Logged In: NO

    jurgen.defurne@pandora.be
    jurgen.defurne@philips.com

    Sorry, forgot e-mail addresses for feedback.