Compare commits
3 Commits
main
...
contributo
Author | SHA1 | Date |
---|---|---|
prx | 3a8fc8a285 | |
prx | 513dacbea1 | |
prx | 9f4a41a2e5 |
|
@ -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.
|
<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>
|
<br /><a class="permalink" href="atom.xml">Feed ATOM</a>
|
||||||
</p>
|
</p>
|
||||||
|
<p id="contributors">Made with ♥ by __CONTRIBUTORS__</p>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -60,10 +60,29 @@ then
|
||||||
fi
|
fi
|
||||||
sed -i "s,__DATETIME__,${DATETIME}," $DESTFILENAME
|
sed -i "s,__DATETIME__,${DATETIME}," $DESTFILENAME
|
||||||
sed -i "s/__HUMAN_DATE__/${HUMAN_DATE}/" $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
|
else
|
||||||
# index.html changes
|
# index.html changes
|
||||||
sed -i "s/ #__ISSUE__//g" $DESTFILENAME
|
sed -i "s/ #__ISSUE__//g" $DESTFILENAME
|
||||||
sed -i "s/__TITLE__/homepage/g" $DESTFILENAME
|
sed -i "s/__TITLE__/homepage/g" $DESTFILENAME
|
||||||
sed -i "s/__FILENAME__/index.html/" $DESTFILENAME
|
sed -i "s/__FILENAME__/index.html/" $DESTFILENAME
|
||||||
|
sed -i "/__CONTRIBUTORS__/d" $DESTFILENAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue