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

Last change on this file since 157 was 157, checked in by navarro, 18 years ago

header improvements + xxx doc

  • Property svn:keywords set to Id
File size: 805 bytes
RevLine 
[93]1;+
[157]2; @categories Utilities
[97]3; @uses cm_general
[118]4; @version $Id$
[93]5;-
[11]6PRO demomode_compatibility
[114]7;
8  compile_opt idl2, strictarrsubs
9;
[93]10
[11]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
[128]20  IF lmgr(/demo) EQ 1 THEN BEGIN
[11]21     democm = find('cm_demomode')
[128]22     file_copy, democm, myuniquetmpdir + 'cm_demomode_used.pro', /overwrite
23  ENDIF ELSE BEGIN
[11]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)
[128]30    journal
31  ENDELSE
[11]32
33  return
34END
Note: See TracBrowser for help on using the repository browser.