|
|
@ -54,7 +54,7 @@ package_options() { :; } # Per-package options function. |
|
|
|
[ -f "$HOME/.astronaut.conf" ] && . "$HOME/.astronaut.conf" |
|
|
|
|
|
|
|
# Options not in the configuration |
|
|
|
_download_only=false |
|
|
|
download_only=false |
|
|
|
_vcs_only=false |
|
|
|
_nuke_dir_install=false |
|
|
|
unset _user_options # Options specified in the command line get the highest priority |
|
|
@ -130,7 +130,7 @@ while getopts "h?s:b:i:p:IcCdvo:" opt; do |
|
|
|
_nuke_dir_install=true |
|
|
|
;; |
|
|
|
d) |
|
|
|
_download_only=true |
|
|
|
download_only=true |
|
|
|
;; |
|
|
|
v) |
|
|
|
_vcs_only=true |
|
|
@ -286,7 +286,7 @@ import() { |
|
|
|
. "$(dirname "$_satellite")/functions/$1.sh" |
|
|
|
} |
|
|
|
|
|
|
|
# Set some functions in accordance to the _download_only option. |
|
|
|
# Set some functions in accordance to the download_only option. |
|
|
|
header_end() { :; } |
|
|
|
if [ "$_vcs_only" = true ]; then |
|
|
|
header_end() { |
|
|
@ -295,7 +295,7 @@ if [ "$_vcs_only" = true ]; then |
|
|
|
fi |
|
|
|
} |
|
|
|
fi |
|
|
|
if [ "$_download_only" = true ]; then |
|
|
|
if [ "$download_only" = true ]; then |
|
|
|
# Disable some functions |
|
|
|
extract() { :; } |
|
|
|
getfile() { :; } |
|
|
@ -309,7 +309,7 @@ fi |
|
|
|
mkdir -p "$dir_source" |
|
|
|
dir_source="$(realpath "$dir_source")" |
|
|
|
|
|
|
|
if [ "$_download_only" = false ]; then |
|
|
|
if [ "$download_only" = false ]; then |
|
|
|
mkdir -p "$dir_build" |
|
|
|
mkdir -p "$dir_install" |
|
|
|
dir_build="$(realpath "$dir_build")" |
|
|
@ -340,7 +340,7 @@ for _satellite in "$@"; do |
|
|
|
( |
|
|
|
options="$_user_options$(package_options "$_satname"),$options" |
|
|
|
|
|
|
|
if [ "$_download_only" = true ]; then |
|
|
|
if [ "$download_only" = true ]; then |
|
|
|
# Just download it |
|
|
|
. "$_satellite" |
|
|
|
else |
|
|
|