From 2f76717cfab8ab34d42853184baad8521517e78f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Mar 2020 12:35:20 -0400 Subject: [PATCH] automate uploading released tarballs to archive.org --- Build/DistributionUpdate.hs | 11 +++++++++++ ...omment_3_9002aa86c44c19f28ab74724daad5422._comment | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 doc/forum/standalone_tarballs_for_specific_versions/comment_3_9002aa86c44c19f28ab74724daad5422._comment diff --git a/Build/DistributionUpdate.hs b/Build/DistributionUpdate.hs index 273d442274..8260881d12 100644 --- a/Build/DistributionUpdate.hs +++ b/Build/DistributionUpdate.hs @@ -69,6 +69,7 @@ main = do Annex.eval state $ do buildrpms topdir updated makeinfos updated version + syncToArchiveOrg -- Download a build from the autobuilder, virus check it, and return its -- version. @@ -241,3 +242,13 @@ buildrpms topdir l = do ("git-annex-standalone-" ++ tararch ++ ".tar.gz") `isSuffixOf` f script = topdir "standalone" "rpm" "rpmbuild-from-standalone-tarball" rpmrepo = "git-annex/linux/current/rpms" + +-- My .mrconfig is configured to copy new files to archive.org, +-- and moves old versions of content to archive.org to free up space on my +-- server. +syncToArchiveOrg :: IO () +syncToArchiveOrg = void $ boolSystem "mr" + [ Param "-d" + , File "/srv/web/downloads.kitenet.net" + , Param "update" + ] diff --git a/doc/forum/standalone_tarballs_for_specific_versions/comment_3_9002aa86c44c19f28ab74724daad5422._comment b/doc/forum/standalone_tarballs_for_specific_versions/comment_3_9002aa86c44c19f28ab74724daad5422._comment new file mode 100644 index 0000000000..d89d48c4ff --- /dev/null +++ b/doc/forum/standalone_tarballs_for_specific_versions/comment_3_9002aa86c44c19f28ab74724daad5422._comment @@ -0,0 +1,11 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2020-03-04T16:25:55Z" + content=""" +That file had not been uploaded to archive.org, so there was no archive.org +url available for it. + +What I'll do is automate the upload to archive.org after each release, +so the tarballs should usually be available from there, barring some breakage. +"""]]