Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Karim Taha
GHC
Commits
3e0c948d
Commit
3e0c948d
authored
4 months ago
by
Ben Gamari
Committed by
Marge Bot
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
rel-eng/upload: Add set_symlink mode
This slightly eases updating of the `latest` symlinks.
parent
1f67ad21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab/rel_eng/upload.sh
+11
-1
11 additions, 1 deletion
.gitlab/rel_eng/upload.sh
with
11 additions
and
1 deletion
.gitlab/rel_eng/upload.sh
+
11
−
1
View file @
3e0c948d
...
@@ -59,8 +59,10 @@ usage() {
...
@@ -59,8 +59,10 @@ usage() {
echo
" prepare_docs prepare the documentation directory"
echo
" prepare_docs prepare the documentation directory"
echo
" upload_docs upload documentation downloads.haskell.org"
echo
" upload_docs upload documentation downloads.haskell.org"
echo
" upload upload the tarballs and documentation to 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_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
" verify verify the signatures in this directory"
echo
echo
}
}
...
@@ -200,6 +202,14 @@ function upload_docs() {
...
@@ -200,6 +202,14 @@ function upload_docs() {
"
$GHC_TREE
/.gitlab/rel_eng/upload_ghc_libs.py"
upload
--docs
=
hackage_docs
${
args
[@]
}
"
$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
\n
ln -s
$ver
ghc/
$SYMLINK
"
| sftp ghc@downloads-origin.haskell.org
curl
-X
PURGE
"http://downloads.haskell.org/~ghc/
$SYMLINK
"
}
if
[
"x
$1
"
==
"x"
]
;
then
if
[
"x
$1
"
==
"x"
]
;
then
recompress
recompress
gen_hashes
gen_hashes
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment