fix for build script

This commit is contained in:
Pavel 2023-11-16 11:51:11 +03:00
parent 215e4d554d
commit ef10f37224

View File

@ -1,6 +1,5 @@
#!/bin/bash
set -euxo pipefail
mkdir -p .temp/result
git submodule update --init --recursive
workdir=$(dirname "$0")
@ -15,13 +14,13 @@ mkdir -p "$build_dir"
# Initialize antizapret data
cd "$path_az"
patch < "$path_data/az-cyrillic-idn-fix.patch"
patch --forward < "$path_data/az-cyrillic-idn-fix.patch" || true
bash update.sh
bash parse.sh
cd "$workdir"
# Generate geoip.dat
cat "$path_data/geoip-generator-config.json" "$path_geoip/config.json"
cat "$path_data/geoip-generator-config.json" > "$path_geoip/config.json"
mkdir -p "$path_geoip/data"
cp "$path_az/result/iplist_all.txt" "$path_geoip/data/ru-blocked-ips-all"
cp "$path_az/result/iplist_blockedbyip.txt" "$path_geoip/data/ru-blocked-ips-directblock"