Last change
on this file since 238 was
231,
checked in by pinsard, 17 years ago
|
improvements/corrections of some *.pro headers
|
-
Property svn:keywords set to
Id
|
File size:
819 bytes
|
Rev | Line | |
---|
[93] | 1 | ;+ |
---|
[231] | 2 | ; |
---|
[224] | 3 | ; @categories |
---|
| 4 | ; Utilities |
---|
| 5 | ; |
---|
| 6 | ; @uses |
---|
| 7 | ; cm_general |
---|
| 8 | ; |
---|
| 9 | ; @version |
---|
| 10 | ; $Id$ |
---|
[93] | 11 | ;- |
---|
[231] | 12 | ; |
---|
[11] | 13 | PRO demomode_compatibility |
---|
[114] | 14 | ; |
---|
| 15 | compile_opt idl2, strictarrsubs |
---|
| 16 | ; |
---|
[93] | 17 | |
---|
[11] | 18 | ; |
---|
| 19 | @cm_general |
---|
| 20 | ; |
---|
| 21 | ; 1) remove all cm_demomode_used.pro found in !path |
---|
| 22 | to_rm = find('cm_demomode_used') |
---|
| 23 | IF to_rm[0] NE 'NOT FOUND' THEN file_delete, to_rm |
---|
| 24 | ; |
---|
| 25 | ; 2) copy oldcm_full(_empty) to myuniquetmpdir+'oldcm_used.pro' |
---|
| 26 | ; select which file should be copied to oldcm_used.pro |
---|
[128] | 27 | IF lmgr(/demo) EQ 1 THEN BEGIN |
---|
[11] | 28 | democm = find('cm_demomode') |
---|
[128] | 29 | file_copy, democm, myuniquetmpdir + 'cm_demomode_used.pro', /overwrite |
---|
| 30 | ENDIF ELSE BEGIN |
---|
[11] | 31 | ; create an empty file... |
---|
| 32 | ; close the journal if already open |
---|
| 33 | IF !journal NE 0 THEN journal |
---|
| 34 | ; open a new one |
---|
| 35 | journal, myuniquetmpdir + 'cm_demomode_used.pro' |
---|
| 36 | ; close it (-> it will be empty) |
---|
[128] | 37 | journal |
---|
| 38 | ENDELSE |
---|
[11] | 39 | |
---|
| 40 | return |
---|
| 41 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.