Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghcup-hs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Haskell
ghcup-hs
Commits
dee8d4bc
Verified
Commit
dee8d4bc
authored
3 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Add symlink ftp script
parent
6c576617
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/update-sftp.sh
+38
-0
38 additions, 0 deletions
scripts/update-sftp.sh
with
38 additions
and
0 deletions
scripts/update-sftp.sh
0 → 100755
+
38
−
0
View file @
dee8d4bc
#!/bin/bash
url
=
$1
ver
=
$2
die
()
{
(>
&2
printf
"%s
\\
n"
"
$1
"
)
exit
2
}
[
-z
$url
]
&&
die
"no url set"
[
-z
$ver
]
&&
die
"no version set"
sftp
$url
<<
EOF
cd ghcup
rm aarch64-apple-darwin-ghcup
rm aarch64-linux-ghcup
rm armv7-linux-ghcup
rm i386-linux-ghcup
rm x86_64-apple-darwin-ghcup
rm x86_64-linux-ghcup
rm x86_64-mingw64-ghcup.exe
rm x86_64-freebsd12-ghcup
rm x86_64-freebsd13-ghcup
symlink
${
ver
}
/aarch64-apple-darwin-ghcup-
${
ver
}
aarch64-apple-darwin-ghcup
symlink
${
ver
}
/aarch64-linux-ghcup-
${
ver
}
aarch64-linux-ghcup
symlink
${
ver
}
/armv7-linux-ghcup-
${
ver
}
armv7-linux-ghcup
symlink
${
ver
}
/i386-linux-ghcup-
${
ver
}
i386-linux-ghcup
symlink
${
ver
}
/x86_64-apple-darwin-ghcup-
${
ver
}
x86_64-apple-darwin-ghcup
symlink
${
ver
}
/x86_64-freebsd12-ghcup-
${
ver
}
x86_64-freebsd12-ghcup
symlink
${
ver
}
/x86_64-freebsd13-ghcup-
${
ver
}
x86_64-freebsd13-ghcup
symlink
${
ver
}
/x86_64-linux-ghcup-
${
ver
}
x86_64-linux-ghcup
symlink
${
ver
}
/x86_64-mingw64-ghcup-
${
ver
}
.exe x86_64-mingw64-ghcup.exe
EOF
curl
-X
PURGE https://downloads.haskell.org/~ghcup/
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