aboutsummaryrefslogtreecommitdiff
path: root/x11/ly/files/git-submodules-to-gh-tuple.awk
blob: 65d524ffdf7186cc55034df242073caedb2e949e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /usr/bin/awk -f

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"
}