Skip to content
Snippets Groups Projects
Commit eb8dad40 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Generate a 'latest release' and display (with date) on the homepage.

This makes the project look a little more 'alive'. :)
parent 496ef9aa
No related branches found
No related tags found
Loading
Checking pipeline status
GIT = git --git-dir=$(GIT_DIR)/.git
GIT_DIR = diffoscope.git
DATA = _data/contributors.yml
DATA = _data/contributors.yml _data/releases.yml
all: $(DATA)
jekyll build --verbose --trace
......@@ -15,5 +15,14 @@ _data/contributors.yml: $(GIT_DIR)
$(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 $(GIT_DIR) $(DATA) _site
......@@ -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.
----
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment