Rev 371 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#! /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############################################################################ Sanity test#echo "JATS setup"if [ ! -d ./TOOLS ] ; thenecho "ERROR: TOOLS directory 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 a+x ./TOOLSchmod -fR a+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"