aboutsummaryrefslogtreecommitdiff
path: root/lib/main.bash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/main.bash')
-rw-r--r--lib/main.bash39
1 files changed, 23 insertions, 16 deletions
diff --git a/lib/main.bash b/lib/main.bash
index c535ba5..7b08ed6 100644
--- a/lib/main.bash
+++ b/lib/main.bash
@@ -27,10 +27,11 @@ main() {
# Declare some global variables
declare -a RSTAR_TOOLS
- declare RSTAR_BACKEND=moar
- declare RSTAR_PREFIX="$BASEDIR"
declare -A RSTAR_PLATFORM
+ [[ -z $RSTAR_BACKEND ]] && RSTAR_BACKEND="moar"
+ [[ -z $RSTAR_PREFIX ]] && RSTAR_PREFIX="$BASEDIR"
+
# Figure out system details
debug "Discovering system information"
discover_system
@@ -74,6 +75,7 @@ usage() {
cat <<EOF
Usage:
rstar -h
+ rstar build-docker [-T tag] [-b backend] [-d description] [-l] [-n name] [-t version] <base>
rstar clean [-s]
rstar dist [version]
rstar fetch
@@ -84,20 +86,25 @@ Usage:
rstar is the entry point for all utilities to deal with Rakudo Star.
Actions:
- clean Clean up the repository. If -s is given, the src directory
- will also be removed.
- dist Create a distributable tarball of this repository. If no
- version identifier is specified, it will use the current year
- and month in "yyyy.mm" notation.
- fetch Fetch all required sources.
- install Install Raku on this system. By default, MoarVM will be used
- as the only backend, and the Rakudo Star directory will be
- used as prefix. If neither core nor modules are given as
- explicit targets, all targets will be installed.
- sysinfo Show information about your system. Useful for debugging.
- test Run tests on Raku and the bundled ecosystem modules. If
- neither spectest nor modules are given as explicit targets,
- all targets will be tested.
+ build-docker Build a Docker image for Rakudo Star. You can specify the
+ tag of the resulting image using -T, which will cause -d,
+ -t, and -l to be ignored. -n specifies the name of the
+ image. If -l is passed, a "latest" tag will also be made.
+ You can specify a specific backend with -b.
+ clean Clean up the repository. If -s is given, the src
+ directory will also be removed.
+ dist Create a distributable tarball of this repository. If no
+ version identifier is specified, it will use the current
+ year and month in "yyyy.mm" notation.
+ fetch Fetch all required sources.
+ install Install Raku on this system. By default, MoarVM will be
+ used as the only backend, and the Rakudo Star directory
+ will be used as prefix. If neither core nor modules are
+ given as explicit targets, all targets will be installed.
+ sysinfo Show information about your system. Useful for debugging.
+ test Run tests on Raku and the bundled ecosystem modules. If
+ neither spectest nor modules are given as explicit
+ targets, all targets will be tested.
EOF
}