Add 'all' command for building all packages at once

pull/197/head
Jan Houben 7 years ago
parent 63cc61f992
commit 926e2d1f30
No known key found for this signature in database
GPG Key ID: B7C6B271DEB42D74
  1. 1
      build.sh
  2. 15
      lib.sh
  3. 1
      push.sh
  4. 1
      repo.sh

@ -46,6 +46,7 @@ usage() {
echo -e " ${mn}\t\t ${md}" echo -e " ${mn}\t\t ${md}"
fi fi
done done
echo " all Select and use all available packages"
echo echo
echo "Commands:" echo "Commands:"
echo echo

@ -562,6 +562,20 @@ check_mode() {
# $1 the mode to check for # $1 the mode to check for
debug "check_mode: checking '$1'" debug "check_mode: checking '$1'"
# add all available modes
if [[ "${1}" == "all" ]]; then
for m in "${mode_list[@]}"; do
mode=("$(echo ${m} | cut -f2 -d:)")
# do not add archiso
if [[ "${mode}" == "iso" ]]; then
continue
fi
modes+=("${mode}")
kernel_names+=("$(echo ${m} | cut -f1 -d:)")
done
else
for m in "${mode_list[@]}"; do for m in "${mode_list[@]}"; do
debug "check_mode: on '${m}'" debug "check_mode: on '${m}'"
local moden=$(echo ${m} | cut -f2 -d:) local moden=$(echo ${m} | cut -f2 -d:)
@ -575,6 +589,7 @@ check_mode() {
error "Unrecognized argument '$1'" error "Unrecognized argument '$1'"
usage usage
exit 155 exit 155
fi
} }

@ -45,6 +45,7 @@ usage() {
echo -e " ${mn}\t\t ${md}" echo -e " ${mn}\t\t ${md}"
fi fi
done done
echo " all Select and use all available packages"
echo echo
echo "Example Usage:" echo "Example Usage:"
echo echo

@ -45,6 +45,7 @@ usage() {
echo -e " ${mn}\t\t ${md}" echo -e " ${mn}\t\t ${md}"
fi fi
done done
echo " all Select and use all available packages"
echo echo
echo "Repository target:" echo "Repository target:"
echo echo

Loading…
Cancel
Save