birchconfig
Class install

public class install

Title: Install a BIRCH system.

Copyright: Copyright (c) 2005

Company: University of Manitoba

Description: This program calls external scripts to install a new BIRCH system or update an existing one. It can be run as a method from birchconfig.jar, or as a standalone commandline program

Logfile: $BIRCH/install-birch/install.log.

This program must be run from the $BIRCH/install-birch directory.

To avoid accidently clobbering the master copy of BIRCH, this program will stop and print an error message if the userid of the person runing it is 'psgendb'.

Parameters:
-new - do a new BIRCH installation. This option will create a new $BIRCH/local directory by renaming 'local-generic' to 'local'. Without the -new switch, install will update the BIRCH site using settings in $BIRCH/local
Version:
0.1
Author:
Dr. Brian Fristensky
Method Detail

progressMessage

static void progressMessage(birchconfig.BufferedTextOutputFile logfile,
                            java.lang.String S)
Write a message to the logfile.

runNobirch

static boolean runNobirch(birchconfig.BufferedTextOutputFile logfile)
Run the nobirch script. This script deletes lines from .cshrc, .profile, .bashrc etc. which add BIRCH to the PATH and set environment variables needed for BIRCH

makeLocal

static boolean makeLocal(java.lang.String BIRCH,
                         birchconfig.BufferedTextOutputFile logfile)
rename local-generic directory to local

BirchHome

static boolean BirchHome(java.lang.String BIRCH,
                         birchconfig.BufferedTextOutputFile logfile)
Run the script birchhome.csh. This script goes through configuration files in BIRCH and changes '/home/psgendb' to the local BIRCH home directory.

setPlatform

static boolean setPlatform(java.lang.String platform,
                           birchconfig.BufferedTextOutputFile logfile)
Run the script setplatform.csh. This script uncomments the appropriate line in profile.source and platform.profile.source to set the enviroment variable BIRCH_PLATFORM

makeParamFile

static void makeParamFile(birchconfig.BirchProperties tempBP,
                          birchconfig.BufferedTextOutputFile logfile)
makeParamFile - create the file $birch/local/admin/newstr.param, which contains strings to be substituted for those in oldstr.param.

customDoc

static boolean customDoc(birchconfig.BufferedTextOutputFile logfile)
Run the script customdoc.py. This script substitutes strings (eg. URLs, directory names, userid of BIRCH admin., email address of BIRCH admin.) in HTML documentation from the original values to local values

htmlDoc

static boolean htmlDoc(java.lang.String BIRCH,
                       birchconfig.BufferedTextOutputFile logfile)
Run the script htmldoc.py. This script creates web pages organizing documentation by category, package, and an index.

makemenus

static boolean makemenus(java.lang.String BIRCH,
                         birchconfig.BufferedTextOutputFile logfile)
Run the script makemenus.py. This script creates .GDEmenus files for all platforms.

makefasta

static boolean makefasta(java.lang.String BIRCH,
                         birchconfig.BufferedTextOutputFile logfile)
Run the script fasta2install.csh and fasta3install.csh. These scripts download the fasta2 and fasta3 packages by FTP compile the programs, and install programs and documentation.

runNewUser

static boolean runNewUser(birchconfig.BufferedTextOutputFile logfile)
Run the newuser script. This script adds lines to .cshrc, .profile, .bashrc etc. to add BIRCH to the PATH and set environment variables needed for BIRCH