Can those of you running under Windows verify that this idiom does the right thing? $^O is supposed to return the OS name. Under Linux, the ssphys program has no extension and the name is all lowercase.

[EMAIL PROTECTED] pin_handler]$ svn diff
Index: vss2svn.pl
===================================================================
--- vss2svn.pl  (revision 223)
+++ vss2svn.pl  (working copy)
@@ -1484,7 +1484,7 @@
    rmtree($gCfg{vssdata}) if (-e $gCfg{vssdata});
    mkdir $gCfg{vssdata};

-    $gCfg{ssphys} ||= 'SSPHYS.exe';
+    $gCfg{ssphys} ||= ($^O =~ /Win/) ? 'SSPHYS.exe' : 'ssphys';
    $gCfg{svn} ||= 'SVN.exe';

    $gCfg{task} = 'INIT';
_______________________________________________
vss2svn-users mailing list
Project homepage:
http://www.pumacode.org/projects/vss2svn/
Subscribe/Unsubscribe/Admin:
http://lists.pumacode.org/mailman/listinfo/vss2svn-users-lists.pumacode.org
Mailing list web interface (with searchable archives):
http://dir.gmane.org/gmane.comp.version-control.subversion.vss2svn.user

Reply via email to