Hi, In an attempt to make working with git submodules easier, I would like to offer this perl script. It is limited to just github for now. It can work with any github repos that have submodules listed in their .gitmodules file (not visible in github web interface).
Here are 2 examples: $ gen-dist-tuple.pl github johnfactotum foliate 3.1.0 < DIST_TUPLE += github johnfactotum foliate 3.1.0 . DIST_TUPLE += github johnfactotum foliate-js 35f749dd7cf8a2e9ee6d34b06d83c92ccd999ba9 src/ foliate-js $ gen-dist-tuple.pl github beyond-all-reason spring \ da52e1c8dccbd33fea11f7bc49429a188751c8d4 DIST_TUPLE += github beyond-all-reason spring da52e1c8dccbd33fea11f7bc49429a188751c8d4 . DIST_TUPLE += github spring Python b69a4ea06bb780d68b5934d5d6ce1b93a684514b AI/Interfaces/Python DIST_TUPLE += github spring pyunitsync 8dfe0bcb867150c4d83e6f691e44dc7a55fda21c tools/unitsync/python DIST_TUPLE += github beyond-all-reason pr-downloader bdac30330eccb5ec73da299922491f3f4ee8debe tools/pr-downloader DIST_TUPLE += github spring SpringMapConvNG 0ddd86eaa8871dc0833c69f931f55cd856c5009d tools/mapcompile DIST_TUPLE += github rlcevg CircuitAI 0561a37458f3eb45157c9709febbfe5843e6570e AI/Skirmish/BARb DIST_TUPLE += github rlcevg CircuitAI afeae5bf1f607744aa984a8ef2094d560d95b564 AI/Skirmish/CircuitAI DIST_TUPLE += github wolfpld tracy 5a1f5371b792c12aea324213e1dc738b2923ae21 rts/lib/tracy DIST_TUPLE += github gflags gflags f8a0efe03aa69b3336d8e228b37d4ccb17324b88 rts/lib/gflags DIST_TUPLE += github skypjack entt e4ccb878f47245a319704912435d3c89f34ad6be rts/lib/entt DIST_TUPLE += github USCiLab cereal d1fcec807b372f04e4c1041b3058e11c12853e6e rts/lib/cereal MODGO's modgo-gen-modules-helper seems to be a comparable script for a that ecosystem (I don't have experience or deeper knowledge of the go module), and devel/cargo's modcargo-gen-crates target achieves something similar. The repo is at: https://github.com/rfht/gen-dist-tuple If this seems useful enough to possible integrate in ${PORTSDIR}/infrastructure/bin, let me know. Comments and feedback welcome!
gen-dist-tuple.pl
Description: Perl program