[Git][reproducible-builds/reproducible-website][master] Automatically add all contributors to /who/people/, or at least those who are...

Chris Lamb (@lamby) gitlab at salsa.debian.org
Sat Jan 15 10:36:22 UTC 2022



Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website


Commits:
7d56c479 by Chris Lamb at 2022-01-14T12:46:50+00:00
Automatically add all contributors to /who/people/, or at least those who are in the Git history of the website repo.

- - - - -


4 changed files:

- .gitignore
- Makefile
- + bin/contributors.sh
- who_/people.md


Changes:

=====================================
.gitignore
=====================================
@@ -7,6 +7,9 @@
 /.jekyll-cache
 /Gemfile.lock
 
+# Auto-generated data files
+_data/contributors.yml
+
 # Auto-generated markdown files for different languages
 _docs/[a-z][a-z]/*.md
 _docs/[a-z][a-z][a-z]/*.md


=====================================
Makefile
=====================================
@@ -2,6 +2,7 @@ LANGUAGES := $(shell ruby -ryaml -e "data = YAML::load(open('_config.yml')); put
 
 all:
 	./bin/i18n.sh
+	./bin/contributors.sh
 	jekyll build --verbose --trace
 
 clean:


=====================================
bin/contributors.sh
=====================================
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+git log --format=%aN | sort | uniq | while read X
+do
+	printf -- "- %s\n" "${X}"
+done > _data/contributors.yml


=====================================
who_/people.md
=====================================
@@ -37,7 +37,9 @@ The preferred way to contact the team is to post to [our public mailing list, `r
 
 The Steering Committee acts as the board of the Reproducible Builds project within the [Software Freedom Conservancy](https://sfconservancy.org/). Its main purpose is deciding how to spend project money.
 
-<br>
+## Contributors
+
+{% for x in site.data.contributors %}{{ x }}{% unless forloop.last %}, {% endunless %}{% endfor %}.
 
 ## Sponsors
 



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/7d56c4792ef957026960d279c25a2076e1ede60d

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/7d56c4792ef957026960d279c25a2076e1ede60d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20220115/42ff1a9e/attachment.htm>


More information about the rb-commits mailing list