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