Last change
on this file since 54 was
11,
checked in by pinsard, 18 years ago
|
upgrade of UTILITAIRE/Utilities according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/ : files
|
-
Property svn:executable set to
*
|
File size:
709 bytes
|
Line | |
---|
1 | PRO demomode_compatibility |
---|
2 | ; |
---|
3 | @cm_general |
---|
4 | ; |
---|
5 | ; 1) remove all cm_demomode_used.pro found in !path |
---|
6 | to_rm = find('cm_demomode_used') |
---|
7 | IF to_rm[0] NE 'NOT FOUND' THEN file_delete, to_rm |
---|
8 | ; |
---|
9 | ; 2) copy oldcm_full(_empty) to myuniquetmpdir+'oldcm_used.pro' |
---|
10 | ; select which file should be copied to oldcm_used.pro |
---|
11 | IF lmgr(/demo) EQ 1 THEN BEGIN |
---|
12 | democm = find('cm_demomode') |
---|
13 | file_copy, democm, myuniquetmpdir + 'cm_demomode_used.pro', /overwrite |
---|
14 | ENDIF ELSE BEGIN |
---|
15 | ; create an empty file... |
---|
16 | ; close the journal if already open |
---|
17 | IF !journal NE 0 THEN journal |
---|
18 | ; open a new one |
---|
19 | journal, myuniquetmpdir + 'cm_demomode_used.pro' |
---|
20 | ; close it (-> it will be empty) |
---|
21 | journal |
---|
22 | ENDELSE |
---|
23 | |
---|
24 | return |
---|
25 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.