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