|
|
@ -92,7 +92,7 @@ Usage: $0 [-bsip <dir>] [-hIdv] [-o <options>] <satellite>... |
|
|
|
-v Only build vcs package if any updates have been made to it |
|
|
|
-o Set package options (comma-separated) |
|
|
|
|
|
|
|
Tips:$([ "$(basename "$0")" = "astronaut" ] && printf "\n- Use \`head -n 50 $0 > astronaut.conf.example\` to generate a default configuration file.") |
|
|
|
Tips:$([ "$(basename "$0")" = "astronaut" ] && printf "\n- Use \`head -n 51 $0 > astronaut.conf.example\` to generate a default configuration file.") |
|
|
|
- Keep in mind that when specifying options on the command line in a string, the first always takes priority. |
|
|
|
For example, in \"opt,someotheropt,!opt\", opt is enabled, due to it being the first occurrence. |
|
|
|
- If you have set \$dir_satellites in the config, you can omit the .sat suffix. |
|
|
@ -290,12 +290,12 @@ import() { |
|
|
|
. "$(dirname "$_satellite")/functions/$1.sh" |
|
|
|
} |
|
|
|
|
|
|
|
# Set some functions in accordance to the download_only option. |
|
|
|
# Set some functions in accordance to the different options. |
|
|
|
header_end() { :; } |
|
|
|
if [ "$_vcs_only" = true ]; then |
|
|
|
header_end() { |
|
|
|
if [ ! "$vcs_compile" = true ]; then |
|
|
|
exit 200 |
|
|
|
if [ "$vcs_compile" = false ]; then |
|
|
|
exit 57 |
|
|
|
fi |
|
|
|
} |
|
|
|
fi |
|
|
@ -366,12 +366,12 @@ for _satellite in "$@"; do |
|
|
|
|
|
|
|
_astronaut_wrapper_post |
|
|
|
fi |
|
|
|
) || { |
|
|
|
code="$?" |
|
|
|
if [ "$_vcs_only" = true -a "$code" = 200 ]; then |
|
|
|
) || ( |
|
|
|
_exit="$?" |
|
|
|
if [ "$_vcs_only" = true -a "$vcs_compile" = false -a "$_exit" = 57 ]; then |
|
|
|
continue |
|
|
|
else |
|
|
|
exit "$code" |
|
|
|
exit "$_exit" |
|
|
|
fi |
|
|
|
} |
|
|
|
) |
|
|
|
done |
|
|
|