12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #!/usr/bin/env bash
- set -euo pipefail
- for cmd in python3 git wget rsync; do
- command -v "$cmd" >/dev/null 2>&1 || {
- printf '[%s] Required command %s not found, exiting.\n' "$(date '+%Y-%m-%d %H:%M:%S')" "$cmd" >&2
- exit 1
- }
- done
- SEED_DATA_DIR="$SRC/seed_data"
- mkdir -p "$SEED_DATA_DIR"
- download_and_concatenate_common_dictionaries() {
-
- target_file="$1"
-
-
- shift
- for url in "$@"; do
- wget -qO- "$url" >>"$target_file"
-
- echo >>"$target_file"
- done
- }
- fetch_seed_data() {
- rsync -avc "$SRC/dulwich/fuzzing/dictionaries/" "$SEED_DATA_DIR/"
- }
- fetch_seed_data
- download_and_concatenate_common_dictionaries "$SEED_DATA_DIR/__base.dict" \
- "https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/utf8.dict" \
- "https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/url.dict"
- python3 -m pip install --upgrade pip
- python3 -m pip install 'setuptools~=69.0' 'pyinstaller~=6.0'
|