diff options
author | Erich Eckner <git@eckner.net> | 2021-02-27 19:41:04 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-27 19:41:04 +0100 |
commit | ab9f3666a38cf4545404cf625fd71ac5f890c390 (patch) | |
tree | f7da68224f007d677e3669ce4c3a8e454ae2699d /archPackagesUpdate | |
parent | 9b0773e2780e6dd9d66f16a80643e00089f8f2e7 (diff) | |
download | archlinuxewe-ab9f3666a38cf4545404cf625fd71ac5f890c390.tar.xz |
archPackagesUpdate: make runnable on arm directly
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index 1fa3c58b4..973aeaa78 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -24,6 +24,7 @@ rmAddPkgs=false log='' logFile='-' printOnly=false +myArch=$(uname -m) # print help screen usage() @@ -538,7 +539,7 @@ for ((i=0; i<${#pakete[@]}; i++)); do fi case "${arch}" in - 'any'|'i486'|'i686'|'pentium4'|'x86_64') + 'any'|'i486'|'i686'|'pentium4'|'x86_64'|"${myArch}") if [ -n "${cleanChroot}" ]; then build_mode='archbuild' elif sed -n ' @@ -570,12 +571,12 @@ for ((i=0; i<${#pakete[@]}; i++)); do build_mode='archbuild' fi if [ "${build_mode}" = 'archbuild' ]; then - archlinuxewe-${arch/any/x86_64}-build ${cleanChroot} -- -- ${log} ${checkMakepkg} --holdver + archlinuxewe-${arch/any/${myArch}}-build ${cleanChroot} -- -- ${log} ${checkMakepkg} --holdver else - makechrootpkg -r "/var/lib/archbuild/archlinuxewe-${arch/any/x86_64}" -- ${log} ${checkMakepkg} --holdver -f + makechrootpkg -r "/var/lib/archbuild/archlinuxewe-${arch/any/${myArch}}" -- ${log} ${checkMakepkg} --holdver -f fi err[${i}]=$? - if [ ${err[${i}]} -eq 0 ] && [ "${arch}" != 'x86_64' ] && [ "${arch}" != 'any' ]; then + if [ ${err[${i}]} -eq 0 ] && [ "${arch}" != "${myArch}" ] && [ "${arch}" != 'any' ]; then { printf '%s\n' \ "From: plasmapaule@gmail.com" \ |