mirror of
https://github.com/danog/parser.git
synced 2024-11-27 04:14:55 +01:00
18 lines
205 B
Bash
Executable File
18 lines
205 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -xe
|
|
|
|
dir=$(realpath $1)
|
|
|
|
cargo build --release
|
|
|
|
for file in $(find $dir -name "*.php")
|
|
do
|
|
./target/release/phpast $file
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
break
|
|
fi
|
|
done
|