Skip packages on ARM

Right now, the packages are hard-coded to report the amd64 architecture.
I'm not sure they'll be used or needed, so for now let's ignore and skip
them.
This commit is contained in:
Thomas Orozco 2016-10-30 15:38:54 +01:00
parent c8cc8274b8
commit 6131b96251
1 changed files with 18 additions and 14 deletions

View File

@ -49,7 +49,9 @@ cmake -B"${BUILD_DIR}" -H"${SOURCE_DIR}"
pushd "${BUILD_DIR}"
make clean
make
make package
if [[ -n "${ARCH_NATIVE:=}" ]]; then
make package
fi
popd
pkg_version="$(cat "${BUILD_DIR}/VERSION")"
@ -146,21 +148,23 @@ for tini in tini tini-static; do
fi
done
for pkg_format in deb rpm; do
src="${BUILD_DIR}/tini_${pkg_version}.${pkg_format}"
if [[ -n "${ARCH_NATIVE:=}" ]]; then
for pkg_format in deb rpm; do
src="${BUILD_DIR}/tini_${pkg_version}.${pkg_format}"
if [[ -n "${ARCH_SUFFIX:=}" ]]; then
to="${DIST_DIR}/tini_${pkg_version}-${ARCH_SUFFIX}.${pkg_format}"
TINIS+=("$to")
cp "$src" "$to"
fi
if [[ -n "${ARCH_SUFFIX:=}" ]]; then
to="${DIST_DIR}/tini_${pkg_version}-${ARCH_SUFFIX}.${pkg_format}"
TINIS+=("$to")
cp "$src" "$to"
fi
if [[ -n "${ARCH_NATIVE:=}" ]]; then
to="${DIST_DIR}/tini_${pkg_version}.${pkg_format}"
TINIS+=("$to")
cp "$src" "$to"
fi
done
if [[ -n "${ARCH_NATIVE:=}" ]]; then
to="${DIST_DIR}/tini_${pkg_version}.${pkg_format}"
TINIS+=("$to")
cp "$src" "$to"
fi
done
fi
echo "Tinis: ${TINIS[*]}"