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

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

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

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