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