~etalab/codegouvfr-consolidate-data

44de0d1a5ded804db84c1e0d2159535081519913 — Bastien Guerry 15 days ago b83a355 master
src/core.clj: Also export SILL as tsv

Thanks to Marc Chantreux for requesting this:
https://lists.sr.ht/~etalab/bluehats/%3C87ilnrgctp.fsf%40bzg.fr%3E#%3CYuvtku0KejGgF2eC@prometheus.u-strasbg.fr%3E
1 files changed, 10 insertions(+), 0 deletions(-)

M src/core.clj
M src/core.clj => src/core.clj +10 -0
@@ 395,6 395,16 @@
               (java.util.Date.))))

(defn- generate-sill-files []
  ;; Export as .tsv
  (spit "sill.tsv" "Logiciel\tVersion\tLicence\tAjouté\n")
  (doseq [{:keys [name versionMin license referencedSinceTime]}
          (filter #(nil? (:dereferencing %)) (get-sill))]
    (spit "sill.tsv"
          (str (string/join "\t" [name versionMin license
                                  (locale-date-from-time referencedSinceTime)])
               "\n")
          :append true))
  ;; Export as .org
  (spit "sill.org"
        (str "#+title: Socle interministériel de logiciels libres\n"
             "#+author: Les référents SILL ministériels et DINUM/Etalab\n"