Blame | Last modification | View Log | RSS feed
#! /usr/bin/bash########################################################################## JATS Post Installation Setup for SOLARIS/LINUX## This command is to be executed in the directory in which it is found## Note: This MUST be a UNIX format file, not a DOS formatted file########################################################################### Determine machine type#if [ -z "$GBE_MACHTYPE" ] ; thenecho "ERROR: GBE_MACHTYPE is not defined"exit 1fi## Sanity test#if [ ! -d ./TOOLS ] ; thenecho "ERROR: TOOLS directory not found"exit 1fiif [ ! -d ./BIN.${GBE_MACHTYPE} ] ; thenecho "ERROR: ./BIN.${GBE_MACHTYPE} directory not found"exit 1fiif [ ! -f ./BIN.${GBE_MACHTYPE}/links.sh ] ; thenecho "ERROR: links.sh not found"exit 1fi## Ensure some essential scripts are not in DOS format# The TOOLS/*.pl file conversion will ensure that pod2usage() operates#for file in ./TOOLS/armerge ./BIN.*/links.sh $( find ./TOOLS -name *.pl ); dochmod +w $filedos2unix -ascii $file $file 2>/dev/nullchmod -w $filedone## Make executables executable#chmod -fR +x ./TOOLSchmod -fR +x ./BIN.*## Release links for all targets.#for dir in ./BIN.*; doif [ -d $dir ] ; thencd $direcho Processing links in $dir[ -f ./links.sh ] && sh ./links.shcd -fidoneecho "JATS setup complete"