[Git][ghc/ghc][master] rel-eng/upload: Add set_symlink mode
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Wed Dec 25 06:43:39 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
3e0c948d by Ben Gamari at 2024-12-25T01:43:08-05:00
rel-eng/upload: Add set_symlink mode
This slightly eases updating of the `latest` symlinks.
- - - - -
1 changed file:
- .gitlab/rel_eng/upload.sh
Changes:
=====================================
.gitlab/rel_eng/upload.sh
=====================================
@@ -59,8 +59,10 @@ usage() {
echo " prepare_docs prepare the documentation directory"
echo " upload_docs upload documentation downloads.haskell.org"
echo " upload upload the tarballs and documentation to downloads.haskell.org"
+ echo " set_symlink <symlink>"
+ echo " set the given symlink (e.g. latest) to the current version"
echo " purge_all purge entire release from the CDN"
- echo " purge_file file purge a given file from the CDN"
+ echo " purge_file <file> purge a given file from the CDN"
echo " verify verify the signatures in this directory"
echo
}
@@ -200,6 +202,14 @@ function upload_docs() {
"$GHC_TREE/.gitlab/rel_eng/upload_ghc_libs.py" upload --docs=hackage_docs ${args[@]}
}
+function set_symlink() {
+ local SYMLINK="$1"
+ # Check to make sure that the indicated version actually exists.
+ curl "https://downloads.haskell.org/ghc/$ver" > /dev/null || (echo "$ver doesn't exist"; exit 1)
+ echo -e "rm ghc/$SYMLINK\nln -s $ver ghc/$SYMLINK" | sftp ghc at downloads-origin.haskell.org
+ curl -X PURGE "http://downloads.haskell.org/~ghc/$SYMLINK"
+}
+
if [ "x$1" == "x" ]; then
recompress
gen_hashes
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3e0c948d86a720806378974d5c6ce78832e2500d
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3e0c948d86a720806378974d5c6ce78832e2500d
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241225/f45dafcf/attachment-0001.html>
More information about the ghc-commits
mailing list