Commit Graph

157 Commits

Author SHA1 Message Date
Julian Ospald 46441d00fc
Fix handling of bz2 2020-01-26 15:52:18 +01:00
Ricardo Ander-Egg 71fea14508 Enable cross-compatibility in macOS using both native mktemp and coreutils mktemp.
Tested on macOS 10.14.6 Mojave running coretuils mktemp version: 8.31
2020-01-15 09:16:53 -05:00
Julian Ospald 9da7462353
Improve the os overwrite switch 2020-01-09 19:59:51 +01:00
Julian Ospald 8ca0404e41
Bump the version 2020-01-09 19:29:33 +01:00
Julian Ospald c3eb34922a
Fix up manpage handling 2020-01-09 18:57:02 +01:00
Julian Ospald 00119a818b
Reinstate "Merge remote-tracking branch 'origin/merge-requestes/129'" 2020-01-09 16:38:05 +01:00
Julian Ospald 499914a8ea
Revert "Merge remote-tracking branch 'origin/merge-requestes/129'"
This reverts commit dbf76bd8be, reversing
changes made to 64e3af0225.
2020-01-09 13:45:26 +01:00
Julian Ospald dbf76bd8be
Merge remote-tracking branch 'origin/merge-requestes/129' 2020-01-09 00:42:44 +01:00
Jan Felix Langenbach 5d2e828c16 Fix new link not overriding old link
This fixes a bug where an existing link to a share directory would not
be overridden, but the new link would be created inside of the directory
referenced by the old link instead.
2020-01-08 05:26:18 +01:00
Julian Ospald 75977faafd
Tweak status message 2019-12-25 17:53:57 +01:00
Julian Ospald 02e356663f
Allow to overwrite the distro used, wrt #116 2019-12-16 15:35:41 +08:00
Julian Ospald 2458f5e9db
Be a little more lax in get_distro_alias 2019-12-16 15:34:47 +08:00
Julian Ospald 0036c95c60
Rm status messages 2019-12-16 15:13:55 +08:00
Julian Ospald af5fda0cd6
Switch version detection logic, by @trac-lierdakil 2019-12-16 15:11:27 +08:00
Julian Ospald b82146d346
Merge remote-tracking branch 'remotes/origin/merge-requests/117' 2019-12-16 15:01:39 +08:00
Olius f4b8a209c7 Changed "local" mydistro to mktemp_mydistro to avoid global name conflicts 2019-12-06 22:46:21 -05:00
Olius 9a087197c9 Added newline to match script style 2019-12-06 21:01:06 -05:00
Olius 8711a4a318 Added mydistro definition to fix mktempdir 2019-12-06 20:59:04 -05:00
Jan Felix Langenbach e22ed9dbe2 Add check to removal of link to share 2019-12-03 23:34:06 +01:00
Jan Felix Langenbach 71d4c2f054 Fix test -f that should be test -d 2019-12-03 23:30:41 +01:00
Jan Felix Langenbach a10c2dbd22 Fix test -n that should be test -z 2019-12-03 23:21:00 +01:00
Jan Felix Langenbach bf4c5a5cf1 Remove link to share on ghcup rm
When the currently set ghc is removed, the ~/.ghcup/share symlink
is now cleaned up like the rest.
2019-12-03 22:51:56 +01:00
Jan Felix Langenbach dc14846276 Symlink share directory on ghcup set
Setting a default ghc version now creates a symlink from
~/.ghcup/ghc/<version>/share to ~/.ghcup/share so man
can find the manpage of the set ghc.
2019-12-03 22:43:20 +01:00
Julian Ospald 4f345d109a
Change implementation of mktempdir 2019-11-13 11:29:02 +08:00
alex 264d84be68 provide temporary directory name prefix only for Darwin 2019-11-04 21:43:48 +00:00
Alex McLean 021a983e91 Add template to mktemp commands, for compatibility with earlier versions of MacOS.
Ref: https://forum.toplap.org/t/trouble-setting-up-tidal-stack-install/902/20
2019-10-31 06:42:05 -04:00
Julian Ospald 8e418eac7e
Use -f instead of -e where applicable 2019-10-22 12:04:03 +08:00
toonn d28923968f Change to bundled-flags arguments for compatibility
Older versions of tar don't understand the `-xf` flags while newer
versions understand the "bundled-flags" (as documend in bsdtar's
manpage) perfectly. So `tar xf` should maximize compatibility.
2019-09-29 14:47:04 +02:00
toonn 9f083c53e9 Bsdtar has no explicit flag for xz decompression
At least as of Mac OS 10.13.6 the included bsdtar has no flag for xz
decompression while `z` means gzip decompression which is obviously
problematic for xz compressed archives.

I believe that any tar version on Mac OS that can decompress xz archives
also automatically detects compression formats. So `tar xf` should be
fine.

Fixes #119
2019-09-29 14:43:05 +02:00
Sam Halliday b2e0db9031 fixup! shellcheck 2019-08-28 21:17:40 +01:00
Sam Halliday cfa2986e0c shellcheck 2019-08-28 21:04:39 +01:00
Sam Halliday 8bde9b9365 support compilation of ghc 8.8.1+ 2019-08-28 20:35:08 +01:00
Julian Ospald 077ed765b7
Fix command_exists for darwin 2019-08-21 19:28:35 +08:00
Julian Ospald 7713180914
Remove redundant PATH messages wrt #113 2019-08-19 10:24:22 +08:00
Eric Mertens 5066a0a816 Don't check for xz on darwin
xz is not needed on darwin and checking for it generates a lot
of questions for new users that we could easily avoid.
2019-07-26 09:45:30 -07:00
Julian Ospald 580da22569
Add basic bash-completion wrt #109 2019-07-24 16:53:15 +08:00
Gershom be1300b08a code review 2019-07-22 02:23:02 -04:00
Gershom d7d7c955d9 avoid requiring xz on os x, improve reqs msg 2019-07-18 01:59:04 -04:00
Michael Abbott 0c5951a225 Fix bogus tabs (issue #106) 2019-06-24 14:32:58 +01:00
Julian Ospald 4842f7ee68
Add redhat support wrt #105 2019-06-24 18:47:13 +08:00
Julian Ospald c984cafb1c
Expose hsc2hs (and other tools distributed with GHC)
Fixes #104
2019-06-20 01:07:29 +08:00
Julian Ospald b56597a02a
Install haddock-$ghcver symlinks by default 2019-06-14 11:20:21 +08:00
Julian Ospald 13612acb2a
Merge branch 'alpine-ghc-support' 2019-06-14 10:06:25 +08:00
Julian Ospald 010b140cda
Introduce major version symlinks wrt #101 2019-06-13 14:49:08 +08:00
Julian Ospald 00fd6f53b9
Add GHC alpine supprt wrt #82
* the bindists are not official
* we have to allow curl to follow redirects, because github
  hosts on AWS
* bindists are built without haddock support, so those symlinks
  must be conditional for now, see
  https://github.com/redneb/ghc-alt-libc/issues/5
2019-06-13 14:47:33 +08:00
Julian Ospald bcdff68d54
Add support GHCUP_META_DOWNLOAD_URL and GHCUP_META_VERSION_URL, fixes #45
Allowing to overwrite .download-urls and .available-versions URLs.

Example:

  GHCUP_META_DOWNLOAD_URL=file://$(pwd)/.download-urls \
  GHCUP_META_VERSION_URL=file://$(pwd)/.available-versions \
    ./ghcup --verbose list
2019-05-30 12:11:22 +08:00
Julian Ospald aa523a206a
Make --version end with a newline, fixes #96 2019-05-30 11:56:38 +08:00
Julian Ospald da988b1eaf
Move away from github 2019-05-24 16:22:40 +08:00
Julian Ospald 8a6ff2ff16
Merge remote-tracking branch 'origin/pr/90' 2019-05-24 10:08:36 +08:00
Francesco Gazzetta 5a60195c47 Add Linux Mint support 2019-05-19 19:50:21 +02:00