[Git][reproducible-builds/diffoscope-website][master] 2 commits: Generate contributor list dynamically.
Chris Lamb
gitlab at salsa.debian.org
Tue May 26 10:22:06 UTC 2020
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope-website
Commits:
496ef9aa by Chris Lamb at 2020-05-26T11:21:11+01:00
Generate contributor list dynamically.
- - - - -
eb8dad40 by Chris Lamb at 2020-05-26T11:21:52+01:00
Generate a 'latest release' and display (with date) on the homepage.
This makes the project look a little more 'alive'. :)
- - - - -
3 changed files:
- .gitignore
- Makefile
- index.md
Changes:
=====================================
.gitignore
=====================================
@@ -1 +1,3 @@
/_site/
+/diffoscope.git/
+/_data/
=====================================
Makefile
=====================================
@@ -1,5 +1,28 @@
-all:
+GIT = git --git-dir=$(GIT_DIR)/.git
+GIT_DIR = diffoscope.git
+
+DATA = _data/contributors.yml _data/releases.yml
+
+all: $(DATA)
jekyll build --verbose --trace
+$(GIT_DIR):
+ git clone https://salsa.debian.org/reproducible-builds/diffoscope.git $@
+
+_data/contributors.yml: $(GIT_DIR)
+ mkdir -p "$(dir $@)"
+ echo "# This file is automatically generated" > $@
+ $(GIT) authors --list | cut -d '<' -f1 | sort | \
+ grep -v root | grep -v @ | sed -e 's@^@- @' -e 's@[ ]*$$@@' >> $@
+
+_data/releases.yml: $(GIT_DIR)
+ mkdir -p "$(dir $@)"
+ echo "# This file is automatically generated" > $@
+ dpkg-parsechangelog -l $(GIT_DIR)/debian/changelog --format=rfc822 --from=0 | \
+ awk -F': ' ' \
+ $$1 == "Version" { print "\n- version: " $$2 } \
+ $$1 == "Timestamp" { print " timestamp: " $$2 } \
+ ' >> $@
+
clean:
- rm -rf _site
+ rm -rf $(GIT_DIR) $(DATA) _site
=====================================
index.md
=====================================
@@ -7,6 +7,8 @@ title: "diffoscope: in-depth comparison of files, archives, and directories"
<div class="lead">In-depth comparison of files, archives, and directories.</div>
+**Latest release**: {{ site.data.releases[0].version }} ({{ site.data.releases[0].timestamp|date: "%d %b %Y" }})
+
*diffoscope* will try to get to the bottom of what makes files or directories different. It will recursively unpack archives of many kinds and transform various binary formats into more human readable form to compare them. It can compare two tarballs, ISO images, or PDF just as easily.
----
@@ -105,9 +107,4 @@ Extending *diffoscope* to support new formats is quite straightforward in most c
## Contributors
-Lunar, Reiner Herrmann, Chris Lamb, Helmut Grohne, Holger Levsen,
-Mattia Rizzolo, Daniel Kahn Gillmor, Paul Gevers, Peter De Wachter,
-Yasushi SHOJI, Clemens Lang, Ed Maste, Joachim Breitner, Mike McQuaid.
-Baptiste Daroussin, Levente Polyak, Ximin Luo, Maria Glukhova, Daniel Shahaf,
-Juliana Oliveira Rodrigues.
-
+{{ site.data.contributors|array_to_sentence_string:"and" }}.
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope-website/-/compare/875ea3d576b27a24ce5c37ebbffa1c5eddb70076...eb8dad40c74a92d0d7fa067ac06587cd4f4ffbf9
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope-website/-/compare/875ea3d576b27a24ce5c37ebbffa1c5eddb70076...eb8dad40c74a92d0d7fa067ac06587cd4f4ffbf9
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/20200526/a58c9300/attachment.htm>
More information about the rb-commits
mailing list