diff options
author | 2017-06-01 17:19:09 +0200 | |
---|---|---|
committer | 2017-06-01 08:19:09 -0700 | |
commit | eb27381e17eb5d6241021af36f5f6faa0edec026 (patch) | |
tree | 1cc2cc0acbd6520c3a7705822d23831ce111aeb6 /projects/wget2 | |
parent | d463522d6ee9b85743d8ceece7611c0a98cb2516 (diff) |
[wget2] Fix .dict and .options names (#642)
* [wget2] Speed up build
* [wget2] Remove path from corpora in zip archive
* [wget2] Fix copying of option and dict files to
Diffstat (limited to 'projects/wget2')
-rwxr-xr-x | projects/wget2/build.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/projects/wget2/build.sh b/projects/wget2/build.sh index 88749d72..81c74067 100755 --- a/projects/wget2/build.sh +++ b/projects/wget2/build.sh @@ -15,13 +15,14 @@ # ################################################################################ -./bootstrap -./configure --enable-static --disable-doc -make +! test -d lib && ./bootstrap +! test -f config.h && ./configure --enable-static --disable-doc +make -j$(nproc) -cp -p fuzz/*.dict fuzz/*.options $OUT +find fuzz -name '*_fuzzer.dict' -exec cp -v '{}' $OUT ';' +find fuzz -name '*_fuzzer.options' -exec cp -v '{}' $OUT ';' -fuzzers=$(find fuzz/ -name "*_fuzzer.cc") +fuzzers=$(find fuzz -name "*_fuzzer.cc") for f in $fuzzers; do fuzzer=$(basename "$f" ".cc") @@ -36,8 +37,7 @@ for f in $fuzzers; do cp "$SRC/${fuzzer}_seed_corpus.zip" "$OUT/" fi - corpus_dir=$(basename "${fuzzer}" "_fuzzer") - if [ -d "fuzz/${corpus_dir}.in/" ]; then - zip -r "$OUT/${fuzzer}_seed_corpus.zip" "fuzz/${corpus_dir}.in/" + if [ -d "fuzz/${fuzzer}.in/" ]; then + zip -rj "$OUT/${fuzzer}_seed_corpus.zip" "fuzz/${fuzzer}.in/" fi done |