summaryrefslogtreecommitdiffstats
path: root/makedeps.sh
blob: 1179dbb3345786ec8c4d30c6a6639e4a533da9e1 (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-$1.tgz ]; then
	echo "+ Unpack"
	tar xf skywalking-$1.tgz

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

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