|
@ -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 |
|
|
-v Only build vcs package if any updates have been made to it |
|
|
-o Set package options (comma-separated) |
|
|
-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. |
|
|
- 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. |
|
|
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. |
|
|
- 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" |
|
|
. "$(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() { :; } |
|
|
header_end() { :; } |
|
|
if [ "$_vcs_only" = true ]; then |
|
|
if [ "$_vcs_only" = true ]; then |
|
|
header_end() { |
|
|
header_end() { |
|
|
if [ ! "$vcs_compile" = true ]; then |
|
|
if [ "$vcs_compile" = false ]; then |
|
|
exit 200 |
|
|
exit 57 |
|
|
fi |
|
|
fi |
|
|
} |
|
|
} |
|
|
fi |
|
|
fi |
|
@ -366,12 +366,12 @@ for _satellite in "$@"; do |
|
|
|
|
|
|
|
|
_astronaut_wrapper_post |
|
|
_astronaut_wrapper_post |
|
|
fi |
|
|
fi |
|
|
) || { |
|
|
) || ( |
|
|
code="$?" |
|
|
_exit="$?" |
|
|
if [ "$_vcs_only" = true -a "$code" = 200 ]; then |
|
|
if [ "$_vcs_only" = true -a "$vcs_compile" = false -a "$_exit" = 57 ]; then |
|
|
continue |
|
|
continue |
|
|
else |
|
|
else |
|
|
exit "$code" |
|
|
exit "$_exit" |
|
|
fi |
|
|
fi |
|
|
} |
|
|
) |
|
|
done |
|
|
done |
|
|