HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/taxicamera/application/third_party/authorize-sdk/scripts/masterUpdate.sh
#!/bin/bash

echo Started at `date`
echo This script will update the generated code
echo

currdir=`pwd`
cmdlist="generateObjectsFromXsd.sh generateControllersFromTemplate.sh"
for cmd in $cmdlist ; do 
    echo Executing Script "$cmd"
    if [ ! -f $currdir/scripts/$cmd ];then
        echo "Script $currdir/scripts/$cmd not found"
        exit 1
    fi
    $currdir/scripts/$cmd
    # echo ***FIXME*** $currdir/scripts/$cmd
    ERRORCODE=$?
    if [ $ERRORCODE -ne 0 ];then
        echo "########################################################################"
        echo "Encountered error during execution of $cmd"
        echo "See logs or output above."
        echo "Exiting, Update ***NOT*** complete."
        exit $ERRORCODE
    fi
done
echo Exiting, Update completed successfully.
echo Compile, run tests and commit to git-hub.
echo Completed at `date`