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