summaryrefslogtreecommitdiff
path: root/x11/ly/files/git-submodules-to-gh-tuple.awk
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2019-11-15 15:04:01 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2019-11-15 15:04:01 +0000
commit756c0aa66329249f0e0a2829890a0a447689a2a5 (patch)
tree446e6821d9e4c327a00cc55a20d0201997f8aa41 /x11/ly/files/git-submodules-to-gh-tuple.awk
parentUpstream has renamed tutorial.pdf to manual.pdf (diff)
New port: x11/ly: TUI (ncurses-like) display manager for X and Wayland
Ly is a lightweight TUI (ncurses-like) display manager for Linux and BSD. It supports both X11 and Wayland sessions. WWW: https://github.com/cylgom/ly Reviewed by: mat Differential Revision: https://reviews.freebsd.org/D22228
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"
+}