Commit Graph

153 Commits

Author SHA1 Message Date
86ffcf81d9
Allow to use wget instead of curl, fixes #15 2018-10-28 17:00:54 +08:00
f71bf2fd51
Fix dangling GHC symlink check 2018-10-27 16:41:23 +08:00
34aa368e9b
Make GHC removal safer
Fixes #18
2018-10-27 16:18:14 +08:00
83cc66365b
Remove dangling ghc, ghci, ... symlinks after removal of active GHC 2018-10-27 15:16:57 +08:00
5bb5389192
Make uninstallation more robust
For an incomplete installation, we still want to remove
what is left over, so don't fail on non-existing symlinks
in $BIN_LOCATION.
2018-10-27 14:45:14 +08:00
5a18896d7a
Merge branch 'PR/add-debug-info-command' 2018-10-17 21:07:54 +08:00
0fd8085327
Merge branch 'PR/update-latest-known-cabal-install' 2018-10-17 21:06:30 +08:00
316fde7522
Merge branch 'PR/more-robust-unpacking' 2018-10-17 21:05:33 +08:00
0445e06ec1
Add a debug-info subcommand 2018-10-17 21:01:40 +08:00
869f306e35
Move error handling into download() function
This also makes the verbosity messages better.
2018-10-17 17:21:11 +08:00
976635b65f
More robust unpacking
On some system, tar might not be able to automatically uncompress,
so do it separately.
2018-10-17 17:21:11 +08:00
fe16061905
Latest known cabal is 2.4.0.0 now 2018-10-17 16:38:17 +08:00
90d068842d
Do smarter cleanup in case GHC installation fails 2018-10-17 15:42:38 +08:00
2eb9549a6c
Remove 'BuildFlavour = quick' since it doesn't have any effect 2018-10-17 10:17:27 +08:00
b2b020eff3
Allow to specify a build config for 'ghcup compile'
Fixes #19
2018-10-17 10:17:07 +08:00
0a5e5cb937
Fix references to hasufell 2018-10-16 14:41:42 +08:00
106d2bb81b
Increase version to 0.0.5 2018-10-16 01:06:42 +08:00
256d81eb13
Fix OS detection
Name is "Debian GNU/Linux" and not "Debian". Wildcard match
to make it more robust, same for Ubuntu.
2018-10-15 23:59:21 +08:00
a7c8f9da7c
Update self_update_usage 2018-10-15 22:19:03 +08:00
Sam Halliday
fafb9bbf9d self-update inplace 2018-10-15 14:32:04 +01:00
bd50a5b290
Release 0.0.4 2018-10-09 00:34:17 +08:00
2193b42822
Make self-update more robust
In fact, the old method was unsafe. Curl would modify the script
in-place and there was no guarantee that the script is already
in memory, leading to harmless, but unnecessary corruption
at the end of the script.

mv is atomic, so will unlink the old file before writing the new one.
2018-10-08 22:42:04 +08:00
54c42c7718
Install cabal into BIN_LOCATION
See #6
2018-10-05 10:44:23 +08:00
1d8f173456
Add compile command to root help 2018-10-05 10:34:26 +08:00
ef2f6dfd65
Add vim setting to end of file 2018-10-03 01:41:24 +08:00
243b707127
Be paranoid about recursive removal 2018-10-03 01:39:48 +08:00
acc0581c08
Remove job setting from 'make install', because it's broken 2018-10-01 14:18:53 +08:00
5dc42f08c1
Fix bug with JOBS being set incorrectly 2018-10-01 14:14:01 +08:00
ba80c6e409
Improve message when no GHC is installed 2018-10-01 12:28:24 +08:00
92b82c4a3e
Allow to build from source, fixes #2 2018-09-30 19:39:40 +08:00
ea2d5c20d9
Add install-cabal subcommand, fixes #3 2018-09-30 16:47:04 +08:00
894a279a2d
Improve error messages 2018-09-30 16:11:56 +08:00
ce314365dd
Fix status message
Should only appear when we have actually removed GHC.
2018-09-30 14:41:18 +08:00
41199b5ebd
Print usage info when only -v is given 2018-09-30 14:36:50 +08:00
b25b907705
set-ghc is set now 2018-09-30 14:33:42 +08:00
6e1b6e431e
Pretty doc sections 2018-09-30 14:26:59 +08:00
1f02c66e05
Remove unneeded else branch 2018-09-30 14:20:48 +08:00
8c775e14fd
More documentation 2018-09-30 14:20:32 +08:00
6dce415077
Simplify self_update 2018-09-30 14:00:58 +08:00
bc6a15cc91
Verify all function input arguments 2018-09-30 13:52:40 +08:00
49a20bc932
Add more code documentation 2018-09-30 13:52:01 +08:00
cb601e6df5
Make ghc download baseurl a global var 2018-09-30 13:34:54 +08:00
857ccefff4
Make script update url a global var 2018-09-30 13:33:04 +08:00
ce9e72795b
Abstract over downloading 2018-09-30 13:31:43 +08:00
f3275360f4
Cleanup unset 2018-09-30 13:21:09 +08:00
8e1a5a0172
Improve error message 2018-09-30 04:06:53 +08:00
ee1d4e6aac
Improve error/status messages 2018-09-30 03:15:21 +08:00
561173b40b
Add rm subcommand 2018-09-30 02:58:55 +08:00
347df231c5
Some refactoring 2018-09-30 02:58:17 +08:00
eaee281fdb
Fix symlinking with verbosity installed
printf was messing this up. Introduce new optionv function for this.
2018-09-30 01:55:14 +08:00
57778ac9a8
Improve help messages 2018-09-30 01:46:21 +08:00
5a2e31e7f6
Improve error handling 2018-09-30 01:33:08 +08:00
111a5d8be3
Rename script from ghcup.sh to ghcup 2018-09-30 01:17:14 +08:00