Skip to content

Commit 54bd2b3

Browse files
committed
Add composer update as SDK generation
1 parent 35555e4 commit 54bd2b3

5 files changed

Lines changed: 11 additions & 5 deletions

File tree

scripts/appendJsonSerializeCode.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
my $filepath = "lib/net/authorize/api/contract/v1/";
1414
my $filename = "$filepath"."$_";
1515
my $text = `cat $filename`;
16-
my $sub = `cat scripts/appendJsonSeralizeCode.txt`;
16+
my $sub = `cat scripts/appendJsonSerializeCode.txt`;
1717

1818
$text =~ s|(.+)}|$1$sub|xms;
1919

scripts/appender.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ find lib/net/authorize/api/contract/v1 -print | grep -i -e "type\.php" > scri
1616
echo "Taking backup of Types"
1717
perl scripts/backup.pl scripts/typeList.txt
1818
echo "Appending JsonSerialize code to Types"
19-
perl scripts/appendJsonSeralizeCode.pl scripts/typeList.txt
19+
perl scripts/appendJsonSerializeCode.pl scripts/typeList.txt
2020
echo "Appending Set code to Types"
2121
perl scripts/appendSetCode.pl scripts/typeList.txt
2222

2323

2424
echo "Taking backup of Requests"
2525
perl scripts/backup.pl scripts/requestList.txt
2626
echo "Appending JsonSerialize code to Requests"
27-
perl scripts/appendJsonSeralizeCode.pl scripts/requestList.txt
27+
perl scripts/appendJsonSerializeCode.pl scripts/requestList.txt
2828
#echo "Appending Set code to Requests"
2929
#perl appendSetCode.pl requestList.txt
3030

scripts/generateControllersFromTemplate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
echo "Starting `date`"
3+
echo "Starting Controller Generation `date`"
44
CDIR=`pwd`
55
SRCDIR=lib
66
GENFOLDER=net/authorize/api/contract/v1

scripts/masterUpdate.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ echo This script will update the generated code
55
echo
66

77
currdir=`pwd`
8-
cmdlist="generateObjectsFromXsd.sh generateControllersFromTemplate.sh appender.sh"
8+
cmdlist="prepare.sh generateObjectsFromXsd.sh generateControllersFromTemplate.sh appender.sh"
99
for cmd in $cmdlist ; do
1010
echo Executing Script "$cmd"
1111
if [ ! -f $currdir/scripts/$cmd ];then
@@ -23,6 +23,7 @@ for cmd in $cmdlist ; do
2323
exit $ERRORCODE
2424
fi
2525
done
26+
2627
echo Exiting, Update completed successfully.
2728
echo Compile, run tests and commit to git-hub.
2829
echo Completed at `date`

scripts/prepare.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
echo "Preparing for SDK Generation `date`"
4+
5+
composer update

0 commit comments

Comments
 (0)