diff --git a/projects/askama/build.sh b/projects/askama/build.sh index dc9b7030ff28..cc27cbde619d 100755 --- a/projects/askama/build.sh +++ b/projects/askama/build.sh @@ -17,18 +17,8 @@ set -eox pipefail -FUZZ_CRATE_DIRS=$(find . -type d -name fuzz -exec dirname $(readlink -f {}) \;) - -for CRATE_DIR in ${FUZZ_CRATE_DIRS[@]}; -do - echo "Building crate: $CRATE_DIR" - cd $CRATE_DIR - cargo +nightly-2023-12-28 fuzz build -O - FUZZ_TARGET_OUTPUT_DIR=fuzz/target/x86_64-unknown-linux-gnu/release - for f in fuzz/fuzz_targets/*.rs - do - FUZZ_TARGET_NAME=$(basename ${f%.*}) - CRATE_NAME=$(basename $CRATE_DIR) - cp $FUZZ_TARGET_OUTPUT_DIR/$FUZZ_TARGET_NAME $OUT/$CRATE_NAME-$FUZZ_TARGET_NAME - done +target_out_dir=fuzz/target/x86_64-unknown-linux-gnu/release +cargo fuzz build -O +cargo fuzz list | while read i; do + cp $target_out_dir/$i $OUT/ done