mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Minor fix for api checker script to support macOS
This commit is contained in:
parent
70a7eb8bae
commit
c5a6047b0e
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
set +o posix
|
||||
|
||||
echo "Starting API Diff"
|
||||
|
||||
@ -11,7 +12,7 @@ if [ ! -f $apiCurrent ]; then
|
||||
fi
|
||||
|
||||
# Remove the two header lines from the diff output.
|
||||
diffContents=`diff -u $apiCurrent $APIHOME/../build/api/api-corda-*.txt | tail --lines=+3`
|
||||
diffContents=`diff -u $apiCurrent $APIHOME/../build/api/api-corda-*.txt | tail -n +3`
|
||||
echo "Diff contents:"
|
||||
echo "$diffContents"
|
||||
echo
|
||||
@ -36,7 +37,7 @@ function forUserImpl() {
|
||||
awk '/DoNotImplement/,/^##/{ next }{ print }' $1
|
||||
}
|
||||
|
||||
userDiffContents=`diff -u <(forUserImpl $apiCurrent) <(forUserImpl $APIHOME/../build/api/api-corda-*.txt) | tail --lines=+3`
|
||||
userDiffContents=`diff -u <(forUserImpl $apiCurrent) <(forUserImpl $APIHOME/../build/api/api-corda-*.txt) | tail -n +3`
|
||||
|
||||
newAbstracts=$(echo "$userDiffContents" | grep "^+" | grep "\(public\|protected\) abstract")
|
||||
abstractCount=`grep -v "^$" <<EOF | wc -l
|
||||
|
Loading…
Reference in New Issue
Block a user