mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Derive working directory for API check from location of script. (#1789)
This commit is contained in:
parent
6c488fd6e0
commit
55af4d211f
@ -2,13 +2,15 @@
|
||||
|
||||
echo "Starting API Diff"
|
||||
|
||||
apiCurrent=./api-current.txt
|
||||
APIHOME=$(dirname $0)
|
||||
|
||||
apiCurrent=$APIHOME/api-current.txt
|
||||
if [ ! -f $apiCurrent ]; then
|
||||
echo "Missing $apiCurrent file - cannot check API diff. Please rebase or add it to this release or ensure working dir is .ci/"
|
||||
echo "Missing $apiCurrent file - cannot check API diff. Please rebase or add it to this release"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
diffContents=`diff -u $apiCurrent ../build/api/api-corda-*.txt`
|
||||
diffContents=`diff -u $apiCurrent $APIHOME/../build/api/api-corda-*.txt`
|
||||
echo "Diff contents: "
|
||||
echo "$diffContents"
|
||||
removals=`echo "$diffContents" | grep "^-\s" | wc -l`
|
||||
|
Loading…
Reference in New Issue
Block a user