summaryrefslogtreecommitdiffstats
path: root/makedeps.sh
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-10-10 11:51:13 +0200
committerRemi Collet <remi@php.net>2022-10-10 11:51:13 +0200
commit7e465a57f4cfdd5eac8daf429453ff239a5e714e (patch)
tree1bf79be6bae5457b973cf3782d919d9dc58d671b /makedeps.sh
initial package
Diffstat (limited to 'makedeps.sh')
-rwxr-xr-xmakedeps.sh20
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