mirror of
https://github.com/corda/corda.git
synced 2025-05-30 06:04:24 +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"
|
echo "Starting API Diff"
|
||||||
|
|
||||||
apiCurrent=./api-current.txt
|
APIHOME=$(dirname $0)
|
||||||
|
|
||||||
|
apiCurrent=$APIHOME/api-current.txt
|
||||||
if [ ! -f $apiCurrent ]; then
|
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
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
diffContents=`diff -u $apiCurrent ../build/api/api-corda-*.txt`
|
diffContents=`diff -u $apiCurrent $APIHOME/../build/api/api-corda-*.txt`
|
||||||
echo "Diff contents: "
|
echo "Diff contents: "
|
||||||
echo "$diffContents"
|
echo "$diffContents"
|
||||||
removals=`echo "$diffContents" | grep "^-\s" | wc -l`
|
removals=`echo "$diffContents" | grep "^-\s" | wc -l`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user