source: issm/oecreview/Archive/11569-11580/ISSM-11574-11575.diff@ 11991

Last change on this file since 11991 was 11991, checked in by Eric.Larour, 13 years ago

oecreview from 11518 to present

File size: 3.7 KB
  • TabularUnified proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/package.sh

     
     1#/bin/bash
     2
     3#Just tar gz the bin/ directory and test/ directory and put a startup.m file.
     4
     5rm -rf ISSM ISSM-Ubuntu32.tar.gz
     6
     7mkdir ISSM
     8cd ISSM
     9ln -s $ISSM_TIER/bin ./bin
     10ln -s $ISSM_TIER/test ./test
     11cp ../startup.m ./
     12cp ../README.m ./
     13cd ..
     14tar  zcvfh  ISSM-Ubuntu32.tar.gz --exclude='.svn' ./ISSM
     15rm -rf ISSM
  • TabularUnified proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/README

    Property changes on: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/package.sh
    ___________________________________________________________________
    Added: svn:executable
       + *
    
     
     1To install ISSM, untar ISSM-Ubuntu32.tar.gz
     2You will get an ISSM directory.
     3
     4You then need to setup the following environment variable in your
     5.bashrc or .cshrc:
     6
     7in your .bashrc:
     8export ISSM_TIER='path_to_untarred_ISSM/bin'
     9
     10or in your .cshrc:
     11setenv ISSM_TIER 'path_to_untarred_ISSM'
     12
     13Once this is done, fireup matlab from inside the ISSM directory:
     14matlab -nojvm -r "startup;"
  • TabularUnified proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/startup.m

     
     1%STARTUP - Matlab startup script
     2%
     3%   startup.m is a script run by matlab at the beginning of a session, just
     4%   before handing over the prompt to the user. This delivery startup.m script
     5%   has been customized here for the ISSM code. This startup script should be
     6%   run by users before trying to use ISSM. The best way to do that is to put
     7%   the startup file in the location where Matlab starts and established its
     8%   root directory.
     9
     10% clear the last warning to focus on the warnings of the ISSM path
     11lastwarn('');
     12
     13%Recover ISSM_TIER , or if on a Windows machine, ISSM_TIER_WIN
     14ISSM_TIER=getenv('ISSM_TIER');
     15
     16if (isempty(ISSM_TIER)),
     17        error('issmdir error message: ''ISSM_TIER'' environment variable is empty! You should define ISSM_TIER in your .cshrc or .bashrc!');
     18end
     19
     20%Now add all issm code paths necessary to run issm smoothly.
     21%We capture the error output, so that we can warn the user to update
     22%the variable ISSM_TIER in this file, in case it is not correctly setup.
     23
     24%ISSM path
     25addpath(ISSM_TIER);
     26addpath([ISSM_TIER '/bin']);
     27
     28%Check on any warning messages that might indicate that the paths were not correct.
     29if ~isempty(lastwarn),
     30        fprintf('\n  Error trying to setup ''ISSM'' code paths. Try and update the ISSM_TIER variable in your .cshrc or .bashrc!\n');
     31        fprintf('  ''ISSM'' will not  work at all until this is resolved\n\n');
     32else
     33        fprintf('\n  To get started with ISSM, type issmdoc at the command prompt.\n\n');
     34end
     35
     36%disable matlab bell!
     37beep off;
     38
     39% no warning if we try to plot while in nojvm (will not be supported in future releases)
     40warning off MATLAB:HandleGraphics:noJVM
Note: See TracBrowser for help on using the repository browser.