summaryrefslogtreecommitdiffstats
path: root/ejabberd/print-deps.sh
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2020-01-31 21:57:01 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2020-02-17 21:44:04 -0500
commit767a3d9e8b2e35d2b1a0785ff0a99003a9bb3cb0 (patch)
treebfb1a821b54f4d0ea1dd1310c1afd22c1d2a89df /ejabberd/print-deps.sh
parent909d069a24a7832a29939c727d503998b6a0f171 (diff)
downloadarch-pkgs-767a3d9e8b2e35d2b1a0785ff0a99003a9bb3cb0.tar.gz
update submodules
Diffstat (limited to 'ejabberd/print-deps.sh')
-rwxr-xr-xejabberd/print-deps.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/ejabberd/print-deps.sh b/ejabberd/print-deps.sh
new file mode 100755
index 0000000..b81c0b7
--- /dev/null
+++ b/ejabberd/print-deps.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+#
+# Helper script which prints ejabberd deps' urls including commit hash
+#
+
+test -d src/ejabberd-*/config || makepkg -od || exit 1
+
+cd src/ejabberd-*/config && cd ..
+
+rm -rf deps
+
+[ -x configure ] || ./autogen.sh
+./configure --enable-all
+make deps || exit 1
+
+cd deps ; ls -1 | while read g; do
+ test -d $g && \
+ pushd $g &>/dev/null
+ if [ $? -eq 0 ]; then
+ U=`grep 'url =' .git/config | cut -f2 -d= | tr -d ' '`
+ C=`git rev-parse HEAD`
+ N=`basename $(pwd)`
+ echo -e "\t\"$N::$U#commit=$C\""
+ fi
+ popd &>/dev/null
+done | sed 's|https://|git://|' >PKGBUILD.inc
+
+cat PKGBUILD.inc | cut -f2 -d'"' | cut -f1 -d: | tr '\n' ' ' >PKGBUILD.inc2