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

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

	pushd  $EXT-$2*
		echo "+ Fetch"
		pushd src/otel
		cargo vendor ../../mycargo
		popd

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