repology_history_atom.sh: small fixes and documentation - randomcrap - random crap programs of varying quality
(HTM) git clone git://git.codemadness.org/randomcrap
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 9d15ed52ba508e472e3100a3e3e7e57c7d6794ac
(DIR) parent 3b0bd2e0665e6db17b9dfdf0b64cdebaa5782fb5
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 17 Aug 2023 18:55:00 +0200
repology_history_atom.sh: small fixes and documentation
Diffstat:
M config/sfeed/connectors/repology_h… | 7 +++++++
1 file changed, 7 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/config/sfeed/connectors/repology_history_atom.sh b/config/sfeed/connectors/repology_history_atom.sh
@@ -1,4 +1,8 @@
#!/bin/sh
+# uses webdump to convert a table from TSV to Atom.
+# can be used with sfeed to convert it to other formats.
+#
+# usage: $0 projectname
name="$1"
curl -s "https://repology.org/project/${name}/history" | \
@@ -15,4 +19,7 @@ BEGIN {
print "<updated>" $1 "</updated>";
print "</entry>";
}
+END {
+ print "</feed>";
+}
'