add sec/
[lhc/admin.git] / update
diff --git a/update b/update
new file mode 100755 (executable)
index 0000000..6eb575f
--- /dev/null
+++ b/update
@@ -0,0 +1,18 @@
+#!/bin/sh -eu
+# DESCRIPTION: update Git submodules
+# SYNTAX:
+
+# ACTION: initialize from ./
+       test -L "$0" && tool="$(readlink -e "$0")" || tool=$0
+       tool=$(readlink -e "${tool%/*}"/.)
+       root=$(readlink -e ${root-"${0%/*}"/.})
+# ACTION: update Git submodules
+       set -x
+       cd "$root"
+       git submodule update --init --recursive lib
+       PATH="$tool"/lib/tool/git/remote/gpg:"$PATH" \
+       GRG_keys="
+               @julm@heureux-cyclage.org,
+               @ludovic.chevalier@heureux-cyclage.org
+        " \
+       git submodule update --init --recursive sec