ports/x11/ly/files/git-submodules-to-gh-tuple.awk
2021-04-06 16:31:13 +02:00

19 lines
248 B
Awk

#! /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"
}