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