Skip to content

hadrian: Also produce versioned wrapper scripts

Matthew Pickering requested to merge wip/T20225 into master

Since !6133 (closed) we are more consistent about producing versioned executables but we still didn't produce versioned wrappers. This patch adds the corresponding versioned wrappers to match the versioned executables in the relocatable bindist.

I also fixed the ghci wrapper so that it wasn't overwritten during installation.

The final bindir looks like:

lrwxrwxrwx 1 matt users   16 Aug 12 11:56 ghc -> ghc-9.3.20210809
-rwxr-xr-x 1 matt users  674 Aug 12 11:56 ghc-9.3.20210809
lrwxrwxrwx 1 matt users   17 Aug 12 11:56 ghci -> ghci-9.3.20210809
-rwxr-xr-x 1 matt users  708 Aug 12 11:56 ghci-9.3.20210809
lrwxrwxrwx 1 matt users   20 Aug 12 11:56 ghc-pkg -> ghc-pkg-9.3.20210809
-rwxr-xr-x 1 matt users  734 Aug 12 11:56 ghc-pkg-9.3.20210809
lrwxrwxrwx 1 matt users   14 Aug 12 11:56 haddock -> haddock-2.24.0
-rwxr-xr-x 1 matt users  682 Aug 12 11:56 haddock-2.24.0
lrwxrwxrwx 1 matt users    9 Aug 12 11:56 hp2ps -> hp2ps-0.1
-rwxr-xr-x 1 matt users  648 Aug 12 11:56 hp2ps-0.1
lrwxrwxrwx 1 matt users    8 Aug 12 11:56 hpc -> hpc-0.68
-rwxr-xr-x 1 matt users  646 Aug 12 11:56 hpc-0.68
lrwxrwxrwx 1 matt users   13 Aug 12 11:56 hsc2hs -> hsc2hs-0.68.8
-rwxr-xr-x 1 matt users 1.4K Aug 12 11:56 hsc2hs-0.68.8
lrwxrwxrwx 1 matt users   19 Aug 12 11:56 runghc -> runghc-9.3.20210809
-rwxr-xr-x 1 matt users  685 Aug 12 11:56 runghc-9.3.20210809

Fixes #20225 (closed)

Merge request reports