forked from AuthorizeNet/sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmasterupdate.sh
More file actions
executable file
·28 lines (25 loc) · 818 Bytes
/
masterupdate.sh
File metadata and controls
executable file
·28 lines (25 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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/script/$cmd ];then
echo "Script $currdir/script/$cmd not found"
exit 1
fi
$currdir/script/$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`