summaryrefslogtreecommitdiffstats
path: root/makedeps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makedeps.sh')
-rw-r--r--makedeps.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/makedeps.sh b/makedeps.sh
new file mode 100644
index 0000000..205b292
--- /dev/null
+++ b/makedeps.sh
@@ -0,0 +1,22 @@
+#!/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"
+ mkdir mycargo
+ export CARGO_HOME=$PWD/mycargo
+ cargo fetch
+
+ echo "+ Pack"
+ tar czf ../skywalking-deps-$1.tgz mycargo
+ popd
+else
+ echo skywalking-$version.tgz missing
+fi