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