source: trunk/SRC/Utilities/demomode_compatibility.pro @ 134

Last change on this file since 134 was 128, checked in by pinsard, 18 years ago

improvements of Utilities/*.pro header

  • Property svn:keywords set to Id
File size: 805 bytes
Line 
1;+
2; @categories utilities
3; @uses cm_general
4; @version $Id$
5;-
6PRO demomode_compatibility
7;
8  compile_opt idl2, strictarrsubs
9;
10
11;
12@cm_general
13;
14; 1) remove all cm_demomode_used.pro found in !path
15  to_rm = find('cm_demomode_used')
16  IF to_rm[0] NE 'NOT FOUND' THEN file_delete, to_rm
17;
18; 2) copy oldcm_full(_empty) to myuniquetmpdir+'oldcm_used.pro'
19; select which file should be copied to oldcm_used.pro
20  IF lmgr(/demo) EQ 1 THEN BEGIN
21     democm = find('cm_demomode')
22     file_copy, democm, myuniquetmpdir + 'cm_demomode_used.pro', /overwrite
23  ENDIF ELSE BEGIN
24; create an empty file...
25; close the journal if already open
26    IF !journal NE 0 THEN journal
27; open a new one
28    journal, myuniquetmpdir + 'cm_demomode_used.pro'
29; close it (-> it will be empty)
30    journal
31  ENDELSE
32
33  return
34END
Note: See TracBrowser for help on using the repository browser.