summaryrefslogtreecommitdiffstats
path: root/makedeps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makedeps.sh')
-rwxr-xr-xmakedeps.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/makedeps.sh b/makedeps.sh
new file mode 100755
index 0000000..a11cb39
--- /dev/null
+++ b/makedeps.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+EXT=datadog_trace
+
+if [ $# -lt 1 ]; then
+ echo usage $0 version
+ exit 0
+fi
+if [ -f $EXT-$1.tgz ]; then
+ echo "+ Unpack"
+ tar xf $EXT-$1.tgz $EXT-$1
+
+ pushd $EXT-$1
+ echo "+ Fetch"
+ cargo vendor mycargo
+
+ echo "+ Pack"
+ tar czf ../$EXT-deps-$1.tgz mycargo
+ popd
+else
+ echo $EXT-$version.tgz missing
+fi