Changeset 197 for trunk


Ignore:
Timestamp:
10/26/06 12:45:17 (18 years ago)
Author:
smasson
Message:

add 2 routines + fix minor bugfix

Location:
trunk/SRC
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/xmldoc/savesaxo.sh

    r195 r197  
    573573    # copy files in a temporary directory 
    574574    mkdir /tmp/download_${$}/ 
    575     cp -rp ../xmldoc/ /tmp/download_${$}/ 
     575    cp -rp ../xmldoc /tmp/download_${$}/ 
    576576    cp -rp ../idldoc_html_output /tmp/download_${$}/ 
    577577    # 
     
    594594     mv ${file_html}_${$} ${file_html} 
    595595    done 
    596     scp -rp /tmp/download_${$}/* ${lgforge}@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 
     596    echo 
     597    echo give SAXO password if asked 
     598    scp -rp /tmp/download_${$}/* saxo@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 
    597599    rm -rf /tmp/download_${$}/ 
    598600fi 
  • trunk/SRC/Utilities/mergeonline_help.pro

    r192 r197  
    66; Documentation 
    77; 
    8 ; @uses 
    9 ; mergeonline_help.sh 
    10 ; 
    118; @restrictions 
    12 ; Works only with "Unix" type machine 
    139; Needs at least version 6.2  
    1410; 
     
    2420; 
    2521; is the IDL version at least 6.2 ? 
    26   IF float(strmid(!version.release, 0, 3)) LT 6.2 THEN BEGIN 
     22  idlversion = float(strmid(!version.release, 0, 3)) 
     23  IF idlversion LT 6.2 THEN BEGIN 
    2724    print, 'Warning: You need at least IDL 6.2 to use SAXO/IDL merged online help' 
    2825    return 
     
    5754  IF homesrc EQ '' THEN return 
    5855 
    59   homesaxo = file_dirname(find('buildinit.pro'), /mark_directory) + 'Documentation/idldoc_assistant_output/' 
     56  homesaxo = file_dirname((find('buildinit.pro'))[0], /mark_directory) + 'Documentation/idldoc_assistant_output/' 
    6057  IF file_test(homesaxo + 'idldoc-lib.adp') EQ 0 THEN BEGIN 
    6158    print, 'Error when looking for the file '+ homesaxo + 'idldoc-lib.adp...' 
     
    8481; are the 2 revision tags the same?? 
    8582        IF array_equal(old, new) THEN BEGIN 
    86           !help_path = homesrc 
    87           print, 'Use SAXO/IDL merged online help...' 
    88           return 
     83; is IDL version the same of homesrc + 'home.html' ? 
     84          homehtml = getfile(homesrc+'home.html') 
     85          line = strmatch(homehtml, '*IDL '+ string(idlversion, format = '(f3.1)') + '*') 
     86          line = (where(line EQ 1))[0] 
     87          IF line NE -1 THEN  BEGIN 
     88            !help_path = homesrc 
     89            print, 'Use SAXO/IDL merged online help...' 
     90            return 
     91          ENDIF 
    8992        ENDIF 
    9093      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.