]> git.ipfire.org Git - people/ms/suricata.git/blame - scripts/bundle.sh
detect: allows <> syntax for uint ranges
[people/ms/suricata.git] / scripts / bundle.sh
CommitLineData
16a21d78
JI
1#! /usr/bin/env bash
2
3while IFS= read -r requirement; do
4 set -- $requirement
5 case "$1" in
6 suricata-update)
7 echo "===> Fetching $1"
8 (cd suricata-update &&
9 curl -Ls "$2" | tar zxf - --strip-components=1)
10 ;;
11 libhtp)
12 echo "===> Fetching $1"
13 mkdir -p libhtp
14 (cd libhtp &&
15 curl -Ls "$2" | tar zxf - --strip-components=1)
16 ;;
17 *)
18 echo "error: unknown requirement: $1"
19 ;;
20 esac
21done < ./requirements.txt