diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-04-14 09:53:03 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-04-14 09:53:03 +0200 |
commit | 38fe1b9c637201654fdc8ce77c7baaf0bdb9c639 (patch) | |
tree | cf0b5ec2d78de4cea9c266db05dc6b0c384fe022 /archbuild.in | |
parent | 15fd0a4b63103eb9c00346b8d233f9e6bc8122d3 (diff) | |
download | devtools32-38fe1b9c637201654fdc8ce77c7baaf0bdb9c639.tar.xz |
setting setarch architecture with new variable (for pentium4)pentium4
Diffstat (limited to 'archbuild.in')
-rw-r--r-- | archbuild.in | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/archbuild.in b/archbuild.in index 4b97963..e115547 100644 --- a/archbuild.in +++ b/archbuild.in @@ -23,14 +23,12 @@ else arch_ext="-${arch}" fi fi -if [[ "${arch}" == 'pentium4' ]]; then - set_arch='i686' -else - set_arch="${arch}" -fi chroots='/var/lib/archbuild' clean_first=false +setarch="$arch" +[[ "$setarch" = "pentium4" ]] && setarch="i686" + usage() { echo "Usage: $cmd [options] -- [makechrootpkg args]" echo ' -h This help' @@ -79,7 +77,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then rm -rf --one-file-system "${chroots}/${repo}-${arch}" mkdir -p "${chroots}/${repo}-${arch}" - setarch "${set_arch}" mkarchroot \ + setarch "${setarch}" mkarchroot \ -C "@pkgdatadir@/pacman-${repo}${arch_ext}.conf" \ -M "@pkgdatadir@/makepkg-${arch}.conf" \ ${cache_dir} \ |