Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/package.sh =================================================================== --- /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/package.sh (revision 0) +++ /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/package.sh (revision 11575) @@ -0,0 +1,15 @@ +#/bin/bash + +#Just tar gz the bin/ directory and test/ directory and put a startup.m file. + +rm -rf ISSM ISSM-Ubuntu32.tar.gz + +mkdir ISSM +cd ISSM +ln -s $ISSM_TIER/bin ./bin +ln -s $ISSM_TIER/test ./test +cp ../startup.m ./ +cp ../README.m ./ +cd .. +tar zcvfh ISSM-Ubuntu32.tar.gz --exclude='.svn' ./ISSM +rm -rf ISSM Property changes on: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/package.sh ___________________________________________________________________ Added: svn:executable + * Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/README =================================================================== --- /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/README (revision 0) +++ /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/README (revision 11575) @@ -0,0 +1,14 @@ +To install ISSM, untar ISSM-Ubuntu32.tar.gz +You will get an ISSM directory. + +You then need to setup the following environment variable in your +.bashrc or .cshrc: + +in your .bashrc: +export ISSM_TIER='path_to_untarred_ISSM/bin' + +or in your .cshrc: +setenv ISSM_TIER 'path_to_untarred_ISSM' + +Once this is done, fireup matlab from inside the ISSM directory: +matlab -nojvm -r "startup;" Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/startup.m =================================================================== --- /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/startup.m (revision 0) +++ /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/startup.m (revision 11575) @@ -0,0 +1,40 @@ +%STARTUP - Matlab startup script +% +% startup.m is a script run by matlab at the beginning of a session, just +% before handing over the prompt to the user. This delivery startup.m script +% has been customized here for the ISSM code. This startup script should be +% run by users before trying to use ISSM. The best way to do that is to put +% the startup file in the location where Matlab starts and established its +% root directory. + +% clear the last warning to focus on the warnings of the ISSM path +lastwarn(''); + +%Recover ISSM_TIER , or if on a Windows machine, ISSM_TIER_WIN +ISSM_TIER=getenv('ISSM_TIER'); + +if (isempty(ISSM_TIER)), + error('issmdir error message: ''ISSM_TIER'' environment variable is empty! You should define ISSM_TIER in your .cshrc or .bashrc!'); +end + +%Now add all issm code paths necessary to run issm smoothly. +%We capture the error output, so that we can warn the user to update +%the variable ISSM_TIER in this file, in case it is not correctly setup. + +%ISSM path +addpath(ISSM_TIER); +addpath([ISSM_TIER '/bin']); + +%Check on any warning messages that might indicate that the paths were not correct. +if ~isempty(lastwarn), + fprintf('\n Error trying to setup ''ISSM'' code paths. Try and update the ISSM_TIER variable in your .cshrc or .bashrc!\n'); + fprintf(' ''ISSM'' will not work at all until this is resolved\n\n'); +else + fprintf('\n To get started with ISSM, type issmdoc at the command prompt.\n\n'); +end + +%disable matlab bell! +beep off; + +% no warning if we try to plot while in nojvm (will not be supported in future releases) +warning off MATLAB:HandleGraphics:noJVM Property changes on: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/startup.m ___________________________________________________________________ Added: svn:executable + *