Hello,
I am not sure who to send this patch to since there are multiple
mlib_devel github repositories, so I thought a general email would be
better.
The latest version of CASPER tools fail in the last stages with a
cryptic error message. I have tracked it down to a problem in
gen_xps_files.m wherein if you have a windows system with Cygwin
installed, it assumes it is a unix-like OS, and then fails to run some
bat files.
Attached is a simple patch to gen_xps_files.m. Hope this helps someone.
Gopal
--
Gopal Narayanan Ph #: (413) 545 0925
Department of Astronomy e-mail: [email protected]
University of Massachusetts Amherst MA 01003
--- gen_xps_files.m.old 2012-08-22 13:34:45.000000000 -0400
+++ gen_xps_files.m 2012-08-22 13:33:57.000000000 -0400
@@ -91,9 +91,14 @@
disp(sprintf('Detected Linux OS'));
system_os = 'linux';
else
- slash = '/';
- disp(sprintf('Detected Unknown Unix-like OS'));
- system_os = 'linux';
+ if ~isempty(regexp(w, 'windows'))
+ disp(sprintf('Detected Cygwin-like Windows OS'));
+ system_os = 'windows';
+ else
+ slash = '/';
+ disp(sprintf('Detected Unknown Unix-like OS'));
+ system_os = 'linux';
+ end
end
xps_blks = find_system(sys,'FollowLinks','on','LookUnderMasks','all','RegExp','on','Tag','^xps:');