Ensure build mechanism changes back to current directory

also when build fails.
This commit is contained in:
Jostein R. Natvig 2009-11-26 07:06:36 +00:00
parent 98ff8ac4f1
commit f4b0ab8c23

View File

@ -30,8 +30,13 @@ p = which('processgrid');
ix = strfind(p, filesep);
p = p(1:ix(end));
cd(p);
mex processgrid.c preprocess.c uniquepoints.c facetopology.c ...
try
mex processgrid.c preprocess.c uniquepoints.c facetopology.c ...
sparsetable.c mxgrdecl.c CFLAGS='$CFLAGS -Wall -fPIC'
catch
cd(op);
error('Couldn''t compile processgrid.mexa64');
end
cd(op)