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. 39
      lib.sh
  3. 1
      push.sh
  4. 1
      repo.sh

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

@ -561,20 +561,35 @@ check_zol_version() {
check_mode() {
# $1 the mode to check for
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
for m in "${mode_list[@]}"; do
debug "check_mode: on '${m}'"
local moden=$(echo ${m} | cut -f2 -d:)
# debug "moden: ${moden}"
if [[ "${moden}" == "$1" ]]; then
modes+=("$1")
modes+=("${mode}")
kernel_names+=("$(echo ${m} | cut -f1 -d:)")
return
fi
done
error "Unrecognized argument '$1'"
usage
exit 155
done
else
for m in "${mode_list[@]}"; do
debug "check_mode: on '${m}'"
local moden=$(echo ${m} | cut -f2 -d:)
# debug "moden: ${moden}"
if [[ "${moden}" == "$1" ]]; then
modes+=("$1")
kernel_names+=("$(echo ${m} | cut -f1 -d:)")
return
fi
done
error "Unrecognized argument '$1'"
usage
exit 155
fi
}

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

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

Loading…
Cancel
Save