Compare commits

...

3 Commits

Author SHA1 Message Date
prx 3a8fc8a285 Revert "add realtek firmware import"
This reverts commit 513dacbea1.
2021-10-08 12:47:10 +02:00
prx 513dacbea1 add realtek firmware import 2021-10-08 12:19:47 +02:00
prx 9f4a41a2e5 automatic contributors listing 2021-10-06 14:51:58 +02:00
2 changed files with 20 additions and 0 deletions

View File

@ -4,6 +4,7 @@
<p id="license">Content under <a class="permalink" href="https://creativecommons.org/licenses/by/4.0/legalcode">CC-BY-4.0</a>. Artworks are under their own licenses.
<br /><a class="permalink" href="atom.xml">Feed ATOM</a>
</p>
<p id="contributors">Made with ♥ by __CONTRIBUTORS__</p>
</footer>
</body>
</html>

View File

@ -60,10 +60,29 @@ then
fi
sed -i "s,__DATETIME__,${DATETIME}," $DESTFILENAME
sed -i "s/__HUMAN_DATE__/${HUMAN_DATE}/" $DESTFILENAME
# find contributors since last issue. This must be at last /!\
lastissue=$(( $issue - 1 ))
if [ $lastissue -ge 1 ]; then
. ./issue-${lastissue}/metadata.sh
lastdate="${PUBLISHED_DATE}"
else
lastdate="0"
fi
contributors="$(git log --reverse --format=%aN --since=2021-09-30T20:12:00Z |\
sort |\
uniq -c |\
sort -r |\
awk '{for (i=2;i<=NF;i++) {printf $i " "} printf"- " }' |\
sed 's/..$//')"
sed -i "s/__CONTRIBUTORS__/$contributors/g" $DESTFILENAME
echo $contributors > /tmp/test.txt
else
# index.html changes
sed -i "s/ #__ISSUE__//g" $DESTFILENAME
sed -i "s/__TITLE__/homepage/g" $DESTFILENAME
sed -i "s/__FILENAME__/index.html/" $DESTFILENAME
sed -i "/__CONTRIBUTORS__/d" $DESTFILENAME
fi