diff options
Diffstat (limited to 'makedeps.sh')
-rwxr-xr-x | makedeps.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makedeps.sh b/makedeps.sh new file mode 100755 index 0000000..b102749 --- /dev/null +++ b/makedeps.sh @@ -0,0 +1,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 |