Changeset 3937


Ignore:
Timestamp:
Nov 8, 2006, 11:28:51 AM (16 years ago)
Author:
ole
Message:

Fine tuned release script.

Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/documentation/user_manual/anuga_installation_guide.tex

    r3934 r3937  
    7474  \item Unpack the ANUGA source code (\code{anuga-1.0_xxxx.tgz})
    7575  in the python site-packages
    76   directory \code{C:\\Python24\\Lib\\site-packages}
    77   \item In the ANUGA root directory (\code{C:\\Python24\\Lib\\site-packages\\anuga}),
     76  directory \code{C:$\backslash$Python24$\backslash$Lib$\backslash$site-packages}
     77  \item In the ANUGA root directory (\code{C:$\backslash$Python24$\backslash$Lib$\backslash$site-packages$\backslash$anuga}),
    7878  run the compilation script (either from the commandline or by clicking on it):
    7979    {\small \begin{verbatim}
  • anuga_work/production/dampier_2006/project.py

    r3905 r3937  
    1313from anuga.geospatial_data.geospatial_data import *
    1414from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area
     15from anuga.utilities.system_tools import get_user_name
    1516
    1617# file and system info
     
    1920
    2021home = getenv('INUNDATIONHOME') #Sandpit's parent dir   
    21 
    22 if sys.platform == 'win32':
    23     user = getenv('USERPROFILE')
    24 else:
    25     user = getenv('LOGNAME')
     22user = get_user_name()
    2623
    2724# INUNDATIONHOME is the inundation directory, not the data directory.
  • create_distribution.py

    r3934 r3937  
    1010from tempfile import mktemp
    1111from sys import platform
     12from anuga.utilities.system_tools import get_user_name, get_host_name
    1213
    1314
     
    156157# This is hardwired for Ole
    157158
    158 system('scp %s/*.tgz onielsen@cyclone:/d/cit/1/cit/risk_assessment_methods_project/downloads/ANUGA_install/anuga' %release_dir)
     159if get_user_name() == 'ole' and get_host_name() == 'nautilus':
    159160
    160 system('scp %s/*.pdf onielsen@cyclone:/d/cit/1/cit/risk_assessment_methods_project/downloads/ANUGA_install' %release_dir)
     161    s = 'rsync -avz %s/*.tgz onielsen@cyclone:/d/cit/1/cit/risk_assessment_methods_project/downloads/ANUGA_install/%s' %(release_dir, 'anuga_%s' %revision)
     162    print s
     163    system(s)
     164   
     165    system('scp %s/*.pdf onielsen@cyclone:/d/cit/1/cit/risk_assessment_methods_project/downloads/ANUGA_install' %release_dir)
Note: See TracChangeset for help on using the changeset viewer.