aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/wget2
diff options
context:
space:
mode:
authorGravatar Tim Rühsen <tim.ruehsen@gmx.de>2017-06-01 17:19:09 +0200
committerGravatar Max Moroz <dor3s1@gmail.com>2017-06-01 08:19:09 -0700
commiteb27381e17eb5d6241021af36f5f6faa0edec026 (patch)
tree1cc2cc0acbd6520c3a7705822d23831ce111aeb6 /projects/wget2
parentd463522d6ee9b85743d8ceece7611c0a98cb2516 (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-xprojects/wget2/build.sh16
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