upd(codegen): optionally generate README docs
This commit is contained in:
parent
30d12b4041
commit
6632a66299
@ -5,7 +5,9 @@ _PWD=$PWD
|
||||
SPECS=$(find $PWD -name 'spec.json' | xargs -n1 dirname)
|
||||
for SPEC in $SPECS; do
|
||||
echo "=== spec $SPEC ==="
|
||||
cd $SPEC && rm -rf spec && /usr/bin/env spec && cd .. && ./README.php && cd $_PWD
|
||||
if [ -x "$(dirname $SPEC)/README.php" ]; then
|
||||
cd $SPEC && rm -rf spec && /usr/bin/env spec && cd .. && ./README.php && cd $_PWD
|
||||
fi
|
||||
|
||||
SRC=$(dirname $(dirname $SPEC))
|
||||
echo "=== codegen $SRC ==="
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user