From a9cc9fe7643b1bc718a12c123d92ddd6feb74116 Mon Sep 17 00:00:00 2001 From: Septs Date: Tue, 21 Jul 2020 00:26:51 +0800 Subject: [PATCH] update scripts --- .gitignore | 1 + .scripts/.gitignore | 1 - .scripts/generate-roa.sh | 5 ++++- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .gitignore delete mode 100644 .scripts/.gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b694934 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.venv \ No newline at end of file diff --git a/.scripts/.gitignore b/.scripts/.gitignore deleted file mode 100644 index fb9df04..0000000 --- a/.scripts/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/.venv \ No newline at end of file diff --git a/.scripts/generate-roa.sh b/.scripts/generate-roa.sh index 29cf5b3..33bee96 100755 --- a/.scripts/generate-roa.sh +++ b/.scripts/generate-roa.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -set -xeuo pipefail +set -euo pipefail IFS=$'\n\t' export MAX_LEN_4=29 @@ -10,9 +10,12 @@ if [ ! -d .venv ]; then fi source .venv/bin/activate +pip install -r .scripts/requirements.txt mkdir -p "generated" +set -x + .scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -o generated/roa46_bird2.conf .scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -4 -o generated/roa4_bird2.conf .scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -6 -o generated/roa6_bird2.conf