#!/bin/tcsh -f # adapted from bde/executables/bde by RJL - 96/7/3 # This runs the chgen13 executable for the proper hosttype. # dt: 97/05/11 (AS) Remove hardcoded references to directory names # Binary files now found in bin directory. # set script_path = $0 if ($script_path =~ \.*) then set script_root = $PWD else if $script_path !~ /* set script_path = ${PWD}/$0 set script_root = $script_path:h endif set gen_root = $script_root:h ## append "/${HOSTTYPE}/chgen13" to get exec: echo "gendir = $gen_root" set exec = "$gen_root/executables/${HOSTTYPE}/chgen13" echo "exec = $exec" if (! -e $exec) then echo "CHGEN executable for platform $HOSTTYPE not found" exit endif set dtg = `ls -l $exec | awk '{print $5"B "$6" "$7":"$8}'` #echo "date = dtg " echo -n "Running chgen on `/bin/hostname` [${HOSTTYPE}]. Compiled: ($dtg) " $exec $*