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