1 | ;+ |
---|
2 | ; |
---|
3 | ; .. _project_init.pro: |
---|
4 | ; |
---|
5 | ; ========================================= |
---|
6 | ; project_init.pro -- init SAXO environment |
---|
7 | ; ========================================= |
---|
8 | ; |
---|
9 | ; DESCRIPTION |
---|
10 | ; =========== |
---|
11 | ; |
---|
12 | ; This is the SAXO initialisation file. |
---|
13 | ; |
---|
14 | ; It ++: |
---|
15 | ; .. code-block:: bash |
---|
16 | ; |
---|
17 | ; idl -IDL_STARTUP project_init.pro |
---|
18 | ; |
---|
19 | ; or: |
---|
20 | ; |
---|
21 | ; .. code-block:: idl |
---|
22 | ; |
---|
23 | ; @project_init |
---|
24 | ; |
---|
25 | ; SEE ALSO |
---|
26 | ; ======== |
---|
27 | ; |
---|
28 | ; :ref:`project_profile.sh` |
---|
29 | ; |
---|
30 | ; :ref:`cm_project.pro` |
---|
31 | ; |
---|
32 | ; TODO |
---|
33 | ; ==== |
---|
34 | ; |
---|
35 | ; test permission on directories |
---|
36 | ; |
---|
37 | ; EVOLUTIONS |
---|
38 | ; ========== |
---|
39 | ; |
---|
40 | ; $URL: svn+ssh://pinsard@forge.ipsl.jussieu.fr/ipsl/forge/projets/cpump/svn/trunk/src/project_init.pro $ |
---|
41 | ; |
---|
42 | ; - fplod 20110426T152038Z cratos.locean-ipsl.upmc.fr (Linux) |
---|
43 | ; |
---|
44 | ; * creation |
---|
45 | ; |
---|
46 | ;- |
---|
47 | ; |
---|
48 | ; SAXO environment |
---|
49 | saxo_dir_env = GETENV('SAXO_DIR') |
---|
50 | ; |
---|
51 | ; project environment #1 |
---|
52 | project_env_temp = GETENV('PROJECT') |
---|
53 | project_id_env_temp = GETENV('PROJECT_ID') |
---|
54 | project_od_env_temp = GETENV('PROJECT_OD') |
---|
55 | ; |
---|
56 | ; path definition |
---|
57 | !path = expand_path('+' + project_env_temp + 'src') $ |
---|
58 | + path_sep(/search_path) + expand_path('+' + saxo_dir_env) $ |
---|
59 | + path_sep(/search_path) + expand_path('+' + !dir) |
---|
60 | ; |
---|
61 | ; project environment #2 |
---|
62 | @cm_project |
---|
63 | project_env = project_env_temp |
---|
64 | project_id_env = project_id_env_temp |
---|
65 | project_od_env = project_od_env_temp |
---|
66 | ; |
---|
67 | ; compatibility with the old version |
---|
68 | keep_compatibility, 0 |
---|
69 | ; |
---|
70 | ; define all the commons |
---|
71 | @cm_4cal |
---|
72 | @cm_4data |
---|
73 | @cm_4mesh |
---|
74 | @cm_4data |
---|
75 | @cm_4ps |
---|
76 | @cm_general |
---|
77 | ; |
---|
78 | ; define default directories |
---|
79 | ; |
---|
80 | homedir = isadirectory(project_env + 'src', title = 'Select the default HOME directory') |
---|
81 | iodir = isadirectory(project_id_env, title = 'Select the default IO directory') |
---|
82 | psdir = isadirectory(project_od_env, title = 'Select the default postscripts directory') |
---|
83 | imagedir = isadirectory(project_od_env, title = 'Select the default images directory') |
---|
84 | animdir = isadirectory(project_od_env, title = 'Select the default animations directory') |
---|
85 | ; |
---|
86 | ; define printer parameters |
---|
87 | ; |
---|
88 | printer_human_names = '' |
---|
89 | printer_machine_names = '' |
---|
90 | print_command = '' |
---|
91 | ; |
---|
92 | ; colors ... |
---|
93 | ; |
---|
94 | device, decomposed = 0 |
---|
95 | device, retain = 2 |
---|
96 | lct, 39 |
---|
97 | ; |
---|
98 | ; postscript parameters ... |
---|
99 | ; |
---|
100 | key_portrait = 0 |
---|
101 | page_size = [20.9903, 29.7039] |
---|
102 | windowsize_scale = 1.00000 |
---|
103 | archive_ps = 0 |
---|
104 | ; |
---|
105 | ;======================================================== |
---|
106 | ; end of the part that should be modified by the users... |
---|
107 | ;======================================================== |
---|
108 | ; |
---|
109 | ; if needed, keep compatibility with the old version |
---|
110 | ; |
---|
111 | @updateold |
---|
112 | ; |
---|