automate uploading released tarballs to archive.org

This commit is contained in:
Joey Hess 2020-03-04 12:35:20 -04:00
parent 9e247e1094
commit 2f76717cfa
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 22 additions and 0 deletions

View file

@ -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"
]

View file

@ -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.
"""]]