File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ _help() {
1717 echo " Outputs the package list of all channels in one file"
1818 echo
1919 echo " General options:"
20+ echo " -a | --arch Specify the architecture"
2021 echo " -o | --out Specify the output dir"
2122 echo " -s | --stdout Output to stdout (Ignore -o)"
2223 echo " -h | --help This help message"
@@ -25,19 +26,24 @@ _help() {
2526script_path=" $( cd -P " $( dirname " $( readlink -f " $0 " ) " ) " && cd .. && pwd ) "
2627tools_dir=" ${script_path} /tools"
2728out_dir=" "
29+ archs=(" x86_64" " i686" " i486" )
2830stdout=false
2931
3032# Parse options
3133ARGUMENT=" ${@ } "
32- opt_short=" o:hs"
33- opt_long=" out:,help,stdout"
34+ opt_short=" a: o:hs"
35+ opt_long=" arch:, out:,help,stdout"
3436OPT=$( getopt -o ${opt_short} -l ${opt_long} -- ${ARGUMENT} )
3537[[ ${?} != 0 ]] && exit 1
3638eval set -- " ${OPT} "
3739unset OPT opt_short opt_long
3840
3941while true ; do
4042 case " ${1} " in
43+ -a | --arch)
44+ archs=(${2} )
45+ shift 2
46+ ;;
4147 -o | --out)
4248 out_dir=" ${2} "
4349 shift 2
6874 mkdir -p " ${out_dir} "
6975fi
7076
71- for arch in " x86_64 " " i686 " " i486 " ; do
77+ for arch in ${archs[@]} ; do
7278 for channel in $( " ${tools_dir} /channel.sh" show -a " ${arch} " -b -d -k zen -f) ; do
7379 # for channel in "${script_path}/channels/releng"; do
7480 include_extra=$(
You can’t perform that action at this time.
0 commit comments