Changeset 3922


Ignore:
Timestamp:
Nov 6, 2006, 5:41:44 PM (16 years ago)
Author:
ole
Message:

Update on automatic bundling of ANUGA for release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • create_distribution.py

    r3902 r3922  
    2222
    2323
    24 # Refresh sandit and retrieve minor revision number
     24# Refresh sandit and retrieve svn revision number
     25# from last line in svn update output
    2526filename = mktemp() + '.txt'
    2627
     
    3031
    3132fid = open(filename)
    32 line = fid.read()
     33last_line = fid.readlines()[-1]
    3334remove(filename)
    34 
    35 if not line.startswith('At revision'):
    36     msg = 'Unexpected output from svn up: %s' %line
     35if not last_line.startswith('At revision'):
     36    msg = 'Unexpected output from svn up: %s' %last_line
    3737    raise Exception, msg   
    3838
    39 minor_revision = line[12:-2]
     39svn_revision = last_line[12:-2]
    4040
    41 revision = '%s_%s' %(major_revision, minor_revision)
     41revision = '%s_%s' %(major_revision, svn_revision)
    4242
    4343distro_filename = 'anuga-%s.tgz' %revision
     
    119119system(s)
    120120
     121#-----------------------------
     122# Hey, why not compile and bundle up the LaTeX documentation as well
     123
     124s = 'cd anuga_core/documentation/user_manual;'
     125s += 'python update_anuga_user_manual.py --no_html'
     126print s
     127system(s)
     128
     129s = '/bin/mv anuga_core/documentation/user_manual/anuga_user_manual.pdf %s'\
     130    %(release_dir)
     131print s
     132system(s)
     133
     134s = '/bin/mv anuga_core/documentation/user_manual/anuga_installation_guide.pdf %s'\
     135    %(release_dir)
     136print s
     137system(s)
     138
     139
    121140
    122141#-----------------------------
Note: See TracChangeset for help on using the changeset viewer.