Compare commits

...

4 commits

2 changed files with 12 additions and 8 deletions

View file

@ -65,13 +65,13 @@ function writeBirdConfig ($roas)
$bird2_fq4 = fopen ('roa/bird4_route_dn42.conf', 'w');
$bird2_fq6 = fopen ('roa/bird6_route_dn42.conf', 'w');
fwrite ($bird1_fq, shell_exec ("/usr/bin/git -C ../registry/ show | sed 's/^/# /g'"));
fwrite ($bird1_fq4, shell_exec ("/usr/bin/git -C ../registry/ show | sed 's/^/# /g'"));
fwrite ($bird1_fq6, shell_exec ("/usr/bin/git -C ../registry/ show | sed 's/^/# /g'"));
fwrite ($bird1_fq, shell_exec ("/usr/bin/git -C ../registry/ log -n 1 | sed 's/^/# /g'"));
fwrite ($bird1_fq4, shell_exec ("/usr/bin/git -C ../registry/ log -n 1 | sed 's/^/# /g'"));
fwrite ($bird1_fq6, shell_exec ("/usr/bin/git -C ../registry/ log -n 1 | sed 's/^/# /g'"));
fwrite ($bird2_fq, shell_exec ("/usr/bin/git -C ../registry/ show | sed 's/^/# /g'"));
fwrite ($bird2_fq4, shell_exec ("/usr/bin/git -C ../registry/ show | sed 's/^/# /g'"));
fwrite ($bird2_fq6, shell_exec ("/usr/bin/git -C ../registry/ show | sed 's/^/# /g'"));
fwrite ($bird2_fq, shell_exec ("/usr/bin/git -C ../registry/ log -n 1 | sed 's/^/# /g'"));
fwrite ($bird2_fq4, shell_exec ("/usr/bin/git -C ../registry/ log -n 1 | sed 's/^/# /g'"));
fwrite ($bird2_fq6, shell_exec ("/usr/bin/git -C ../registry/ log -n 1 | sed 's/^/# /g'"));
foreach ($roas["roas"] as $roa)
{

View file

@ -46,11 +46,15 @@ echo "## Notes
- bird4_route_dn42.conf
- bird6_route_dn42.conf
## Last commit
## [Last commit][0] at [dn42 registry][1]
\`\`\`
$(git -C ../registry/ log -n 1)
\`\`\`" > roa/README.md
\`\`\`
[0]: https://git.dn42.us/dn42/registry/commit/$(git -C ../registry/ log -n 1 --pretty='format:%H')
[1]: https://git.dn42.us/dn42/registry
" > roa/README.md
# Commit latest version of ROA files
git -C roa/ add README.md *.conf *.json