summaryrefslogtreecommitdiffstats
path: root/makedeps.sh
blob: a11cb39774ed1972d5e5174e149040857b6dbc6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
EXT=datadog_trace

if [ $# -lt 1 ]; then
	echo usage $0 version
	exit 0
fi
if [ -f $EXT-$1.tgz ]; then
	echo "+ Unpack"
	tar xf $EXT-$1.tgz  $EXT-$1

	pushd  $EXT-$1
		echo "+ Fetch"
		cargo vendor mycargo

		echo "+ Pack"
		tar czf ../$EXT-deps-$1.tgz mycargo
	popd
else
	echo $EXT-$version.tgz missing
fi