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

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

oecreview from 11518 to present

File size: 3.7 KB
RevLine 
[11991]1Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/package.sh
2===================================================================
3--- /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/package.sh (revision 0)
4+++ /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/package.sh (revision 11575)
5@@ -0,0 +1,15 @@
6+#/bin/bash
7+
8+#Just tar gz the bin/ directory and test/ directory and put a startup.m file.
9+
10+rm -rf ISSM ISSM-Ubuntu32.tar.gz
11+
12+mkdir ISSM
13+cd ISSM
14+ln -s $ISSM_TIER/bin ./bin
15+ln -s $ISSM_TIER/test ./test
16+cp ../startup.m ./
17+cp ../README.m ./
18+cd ..
19+tar zcvfh ISSM-Ubuntu32.tar.gz --exclude='.svn' ./ISSM
20+rm -rf ISSM
21
22Property changes on: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/package.sh
23___________________________________________________________________
24Added: svn:executable
25 + *
26
27Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/README
28===================================================================
29--- /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/README (revision 0)
30+++ /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/README (revision 11575)
31@@ -0,0 +1,14 @@
32+To install ISSM, untar ISSM-Ubuntu32.tar.gz
33+You will get an ISSM directory.
34+
35+You then need to setup the following environment variable in your
36+.bashrc or .cshrc:
37+
38+in your .bashrc:
39+export ISSM_TIER='path_to_untarred_ISSM/bin'
40+
41+or in your .cshrc:
42+setenv ISSM_TIER 'path_to_untarred_ISSM'
43+
44+Once this is done, fireup matlab from inside the ISSM directory:
45+matlab -nojvm -r "startup;"
46Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/startup.m
47===================================================================
48--- /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/startup.m (revision 0)
49+++ /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/startup.m (revision 11575)
50@@ -0,0 +1,40 @@
51+%STARTUP - Matlab startup script
52+%
53+% startup.m is a script run by matlab at the beginning of a session, just
54+% before handing over the prompt to the user. This delivery startup.m script
55+% has been customized here for the ISSM code. This startup script should be
56+% run by users before trying to use ISSM. The best way to do that is to put
57+% the startup file in the location where Matlab starts and established its
58+% root directory.
59+
60+% clear the last warning to focus on the warnings of the ISSM path
61+lastwarn('');
62+
63+%Recover ISSM_TIER , or if on a Windows machine, ISSM_TIER_WIN
64+ISSM_TIER=getenv('ISSM_TIER');
65+
66+if (isempty(ISSM_TIER)),
67+ error('issmdir error message: ''ISSM_TIER'' environment variable is empty! You should define ISSM_TIER in your .cshrc or .bashrc!');
68+end
69+
70+%Now add all issm code paths necessary to run issm smoothly.
71+%We capture the error output, so that we can warn the user to update
72+%the variable ISSM_TIER in this file, in case it is not correctly setup.
73+
74+%ISSM path
75+addpath(ISSM_TIER);
76+addpath([ISSM_TIER '/bin']);
77+
78+%Check on any warning messages that might indicate that the paths were not correct.
79+if ~isempty(lastwarn),
80+ fprintf('\n Error trying to setup ''ISSM'' code paths. Try and update the ISSM_TIER variable in your .cshrc or .bashrc!\n');
81+ fprintf(' ''ISSM'' will not work at all until this is resolved\n\n');
82+else
83+ fprintf('\n To get started with ISSM, type issmdoc at the command prompt.\n\n');
84+end
85+
86+%disable matlab bell!
87+beep off;
88+
89+% no warning if we try to plot while in nojvm (will not be supported in future releases)
90+warning off MATLAB:HandleGraphics:noJVM
91
92Property changes on: /proj/ice/larour/issm-uci-clean/trunk-jpl/packagers/ubuntu/startup.m
93___________________________________________________________________
94Added: svn:executable
95 + *
96
Note: See TracBrowser for help on using the repository browser.