Skip to content

Commit b265790

Browse files
committed
[update] : Added --arch
1 parent c6a31af commit b265790

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

tools/allpkglist.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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() {
2526
script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && cd .. && pwd )"
2627
tools_dir="${script_path}/tools"
2728
out_dir=""
29+
archs=("x86_64" "i686" "i486")
2830
stdout=false
2931

3032
# Parse options
3133
ARGUMENT="${@}"
32-
opt_short="o:hs"
33-
opt_long="out:,help,stdout"
34+
opt_short="a:o:hs"
35+
opt_long="arch:,out:,help,stdout"
3436
OPT=$(getopt -o ${opt_short} -l ${opt_long} -- ${ARGUMENT})
3537
[[ ${?} != 0 ]] && exit 1
3638
eval set -- "${OPT}"
3739
unset OPT opt_short opt_long
3840

3941
while 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
@@ -68,7 +74,7 @@ else
6874
mkdir -p "${out_dir}"
6975
fi
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=$(

0 commit comments

Comments
 (0)