pod11-node5 bm_verify configuration
[icn.git] / tools / collect.sh
1 #!/usr/bin/env bash
2 set -eux -o pipefail
3
4 SCRIPT_PATH=`realpath $0`
5 TOOL_PATH=`dirname "$SCRIPT_PATH"`
6 ICN_PATH=`dirname $TOOL_PATH`
7 # Get into workspace directory, we run every following command from the workspace directory
8 cd $ICN_PATH/../
9
10 mkdir -p $ICN_PATH/apt/deb/
11
12 # Call scripts to collect everything from Internet,
13 # all the collected files need to be put under ICN_PATH
14 for collect_sh in `find icn/ -name collect_*.sh | sort`; do
15     collect_parent=`dirname $collect_sh`
16     pushd $collect_parent
17     bash `basename $collect_sh` $ICN_PATH
18     popd
19 done