Changeset 119

Show
Ignore:
Timestamp:
10/04/07 21:08:15 (6 years ago)
Author:
mgalloy
Message:

Added svn revision number to idldoc.sav; updated sav file template.

Location:
trunk/idldoc
Files:
2 added
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/idldoc/build_idldoc.pro

    r116 r119  
    6060 
    6161; create the sav file 
    62 save, filename='idldoc.sav', /routines, description='IDLdoc ' + idldoc_version() 
     62save, filename='idldoc.sav', /routines, description='IDLdoc ' + idldoc_version(/full) 
    6363 
    6464exit 
  • trunk/idldoc/Makefile

    r107 r119  
    11VERSION=3.0-development 
     2REVISION=-r`svn info | sed -n 's/Revision: \(.*\)/\1/p'` 
    23 
    34all: clean docs dist 
     
    1011 
    1112dist: 
    12         sed "s/return, '.*'/return, '$(VERSION)'/" < src/idldoc_version.pro > idldoc_version.pro 
     13        echo $(REVISION) 
     14        sed "s/version = '.*'/version = '$(VERSION)'/" < src/idldoc_version.pro | sed "s/revision = '.*'/revision = '$(REVISION)'/" > idldoc_version.pro 
    1315        mv idldoc_version.pro src/ 
    1416         
  • trunk/idldoc/src/idldoc_version.pro

    r116 r119  
    1 function idldoc_version 
     1function idldoc_version, full=full 
    22  compile_opt strictarr 
    33   
    4   return, '3.0-development' 
     4  version = '3.0-development' 
     5  revision = '-r117' 
     6   
     7  return, version + (keyword_set(full) ? (' ' + revision) : '') 
    58end 
  • trunk/idldoc/src/templates/savefile.tt

    r85 r119  
    3434     
    3535    <div class="content"> 
    36        
     36      <h2 class="directory">[% location %]</h2> 
     37      <h1 class="basename">[% basename %]</h1> 
     38             
    3739      <h2>SAV file attributes</h2> 
    3840       
    39       <table class="attribute"> 
    40         <tr> 
    41           <td class="name">Filename:</td> 
    42           <td>[% filename %]</td> 
    43         </tr>      
     41      <table class="attribute smaller">   
    4442        <tr> 
    4543          <td class="name">Description:</td> 
     
    6664      <h2>Contents</h2> 
    6765       
    68       <table class="attribute">       
     66      <table class="attribute smaller">       
    6967        <tr> 
    7068          <td class="name">Procedures: </td> 
     
    103101      <h2>File attributes</h2> 
    104102       
     103        <table class="attribute smaller"> 
     104          <tr> 
     105            <td class="name">Modifcation date:</td> 
     106            <td>[% modification_time %]</td> 
     107          </tr> 
     108 
     109          <tr> 
     110            <td class="name">Size:</td> 
     111            <td>[% size %]</td> 
     112          </tr>           
     113        </table       
     114         
    105115    </div> 
    106116     
  • trunk/idldoc/src/tree/doctreeprofile__define.pro

    r114 r119  
    8282     
    8383    'modification_time': return, self.modificationTime 
    84     'n_lines': return, self.nLines 
     84    'n_lines': return, mg_int_format(self.nLines) 
    8585    'format': return, self.format 
    8686    'markup': return, self.markup 
  • trunk/idldoc/src/tree/doctreesavfile__define.pro

    r115 r119  
    3333        return, contents.date 
    3434      end 
     35    'modification_time': return, self.modificationTime 
     36    'size': return, self.size 
    3537    'filename': 
    3638    'description':  
     
    8082pro doctreesavfile::setProperty 
    8183  compile_opt strictarr 
    82    
     84 
    8385end 
    8486 
     
    132134   
    133135  self.savFile = obj_new('IDL_Savefile', root + location + self.basename) 
     136  info = file_info(root + location + self.basename) 
     137  self.modificationTime = systime(0, info.mtime) 
     138  self.size = mg_int_format(info.size) + ' bytes' 
    134139   
    135140  self.system->createIndexEntry, self.basename, self 
     
    155160             system: obj_new(), $ 
    156161             directory: obj_new(), $ 
     162              
    157163             basename: '', $ 
    158              savFile: obj_new() $ 
     164              
     165             savFile: obj_new(), $ 
     166             modificationTime: '', $ 
     167             size: '' $ 
    159168           } 
    160169end