@@ -54,13 +54,13 @@ while getopts "a:c:g:i:n:h" opt; do
5454 image=" ${OPTARG} "
5555 };;
5656 n ) {
57- if [ " ${OPTARG} " = " gmp" ] || [ " ${OPTARG} " = " simple" ]; then
58- numeric=" ${OPTARG} "
59- else
57+ if [ " ${OPTARG} " = " gmp" ] || [ " ${OPTARG} " = " simple" ]; then
58+ numeric=" ${OPTARG} "
59+ else
6060 echo " Invalid NUMERIC argument (i.e. '-n')." >&2
6161 echo " Expected either 'gmp' or 'simple', got '${OPTARG} '" >&2
6262 exit 1
63- fi ;
63+ fi ;
6464 };;
6565 h ) {
6666 echo " ${usage} "
@@ -87,12 +87,6 @@ image="${image}-${numeric}"
8787# ###############################################################################
8888
8989# Create the container that will be used to compile GHC from source.
90- #
91- # NOTE: Alternatively: `buildah commit --rm` (at the end of the script) removes
92- # the working container.
93- #
94- # XXX: Reusing the container by name if it exists seems like not the best idea
95- # but it's convenient for development.
9690buildah \
9791 --signature-policy=./policy.json \
9892 --name " ${container} " \
@@ -102,9 +96,7 @@ buildah \
10296# Copy `ghcup` from another container.
10397# ###############################################################################
10498
105- # XXX: Maybe the `"ghcup"` image name should be fully qualified (i.e.
106- # "localhost/ghcup" for an image built locally)...?
107- buildah unshare ./ghc/copy_ghcup.sh " ghcup" " ${container} "
99+ buildah unshare ./common/copy_ghcup.sh " ghcup" " ${container} "
108100
109101# ###############################################################################
110102# Dependencies.
0 commit comments