Created
July 15, 2016 19:05
-
-
Save ChristopherDavenport/2fd9aa5b1c573b8caa48b86816aa36e6 to your computer and use it in GitHub Desktop.
Recompile All Banner Modules Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script moves to recompile all of the Banner Jobsub components. | |
# This function executes the file if it exists. | |
function ifFileExistsExecute(){ | |
if [ -f "$1" ]; then | |
if $1 ; then | |
echo "$1 compiled" | |
else | |
echo "$1 failed" | |
fi | |
else | |
echo "$1 does not exist" | |
fi | |
} | |
# This function takes 2 parameters and executes the files only if | |
# there are no flags passed or if the -cob flag is passed to run | |
# only cobol programs. | |
function cob(){ | |
if [ "$2" == "-cob" ] || [ "$2" == "" ]; then | |
ifFileExistsExecute $1 | |
fi | |
} | |
# This function takes 2 parameters and executes the files only if | |
# there are no flags passed or if the -c flag is passed to run | |
# only the c programs | |
function c(){ | |
if [ "$2" == "-c" ] || [ "$2" == "" ]; then | |
ifFileExistsExecute $1 | |
fi | |
} | |
# This is where we do evaluation of whether the script should | |
# any qualifications or requirements should be enumerated here. | |
if [ -d $BANNER_HOME ] ; then | |
FLAG=$1 | |
GENERAL=$BANNER_HOME/general/misc | |
ADVANCEMENT=$BANNER_HOME/alumni/misc | |
ACCOUNTS_RECEIVABLE=$BANNER_HOME/arsys/misc | |
FINANCIAL_AID=$BANNER_HOME/finaid/misc | |
FINANCE=$BANNER_HOME/finance/misc | |
INFORMATION_ACCESS=$BANNER_HOME | |
INAS=$BANNER_HOME | |
INTEGRATION_COMPONENT=$BANNER_HOME/intcomp/misc | |
PAYROLL=$BANNER_HOME/payroll/misc | |
EMPLOYEE_SELF_SERVICE=$BANNER_HOME/payweb/misc | |
POSITION_CONTROL=$BANNER_HOME/posnctl/misc | |
STUDENT=$BANNER_HOME/student/misc | |
EXTENDER_SOLUTIONS=$BANNER_HOME | |
WINDSTAR=$BANNER_HOME | |
GENERAL_COBOL=$GENERAL/gencmpl.shl | |
GENERAL_C=$GENERAL/gencmplc.shl | |
ADVANCEMENT_C=$ADVANCEMENT/alucmplc.shl | |
ACCOUNTS_RECEIVABLE_COBOL=$ACCOUNTS_RECEIVABLE/tascmpl.shl | |
ACCOUNTS_RECEIVABLE_C=$ACCOUNTS_RECEIVABLE/tascmplc.shl | |
FINANCIAL_AID_COBOL=$FINANCIAL_AID/rescmpl.shl | |
FINANCIAL_AID_C=$FINANCIAL_AID/rescmplc.shl | |
FINANCE_C=$FINANCE/fincmplc.shl | |
INFORMATION_ACCESS_C=$INFORMATION_ACCESS/ircmplc.shl | |
INAS_COBOL=$INAS/inascmpl.shl | |
INTEGRATION_COMPONENT_C=$INTEGRATION_COMPONENT/intcmplc.shl | |
PAYROLL_COBOL=$PAYROLL/paycmpl.shl | |
PAYROLL_C=$PAYROLL/paycmplc.shl | |
EMPLOYEE_SELF_SERVICE_C=$EMPLOYEE_SELF_SERVICE/bwpcmplc.shl | |
POSITION_CONTROL_C=$POSITION_CONTROL/poscmplc.shl | |
STUDENT_COBOL=$STUDENT/stucmpl.shl | |
STUDENT_C=$STUDENT/stucmplc.shl | |
EXTENDER_SOLUTIONS_C=$EXTENDER_SOLUTIONS/extcmplc.shl | |
WINDSTAR_C=$WINDSTAR/bwpcmplc.shl | |
if [ -f $GENERAL_COBOL ] && [ -f $GENERAL_C ]; then | |
if $GENERAL_COBOL && $GENERAL_C ; then | |
c $ADVANCEMENT_C $FLAG | |
cob $ACCOUNTS_RECEIVABLE_COBOL $FLAG | |
c $ACCOUNTS_RECEIVABLE_C $FLAG | |
c $FINANCIAL_AID_C $FLAG | |
c $FINANCE_C $FLAG | |
c $INFORMATION_ACCESS_C $FLAG | |
cob $INAS_COBOL $FLAG | |
c $INTEGRATION_COMPONENT_C $FLAG | |
cob $PAYROLL_COBOL $FLAG | |
c $PAYROLL_C $FLAG | |
c $EMPLOYEE_SELF_SERVICE_C $FLAG | |
c $POSITION_CONTROL_C $FLAG | |
cob $STUDENT_COBOL $FLAG | |
c $STUDENT_C $FLAG | |
c $EXTENDER_SOLUTIONS_C $FLAG | |
c $WINDSTAR_C $FLAG | |
else | |
echo "General Compilation Failed Aborting!." 1>&2 | |
exit 1 | |
fi | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment