summaryrefslogtreecommitdiff
path: root/x11/ly/files/git-submodules-to-gh-tuple.awk
diff options
context:
space:
mode:
Diffstat (limited to 'x11/ly/files/git-submodules-to-gh-tuple.awk')
-rw-r--r--x11/ly/files/git-submodules-to-gh-tuple.awk20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/ly/files/git-submodules-to-gh-tuple.awk b/x11/ly/files/git-submodules-to-gh-tuple.awk
new file mode 100644
index 000000000000..8d275695ec5b
--- /dev/null
+++ b/x11/ly/files/git-submodules-to-gh-tuple.awk
@@ -0,0 +1,20 @@
+#! /usr/bin/awk -f
+# $FreeBSD$
+
+BEGIN {
+ group_number = 0
+ printf "GH_TUPLE="
+}
+
+{
+ account = "cylgom"
+ project = $2
+ gsub(".*/", "", project)
+ hash = $1
+ path = $2
+ printf " \\\n\t%s:%s:%s:%s/%s", account, project, hash, project, path
+}
+
+END {
+ printf "\n"
+}