From c898992ec9e479966448ed87b84d7ea84e0021d2 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Wed, 30 Sep 2020 16:51:33 +0200 Subject: [PATCH] Refactor ci/build.sh by moving definitions --- ci/build.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/build.sh b/ci/build.sh index abe2df4f7..1c520134a 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -16,6 +16,11 @@ GV_VERSION=$( cat VERSION ) COLLECTION=$( cat COLLECTION ) META_DATA_DIR=Metadata/${COLLECTION}/${ID}/${VERSION_ID} mkdir -p ${META_DATA_DIR} +DIR=Packages/${COLLECTION}/${ID}/${VERSION_ID} +ARCH=$( uname -m ) +mkdir -p ${DIR}/os/${ARCH} +mkdir -p ${DIR}/debug/${ARCH} +mkdir -p ${DIR}/source if [ "${build_system}" = "cmake" ]; then mkdir build cd build @@ -32,11 +37,6 @@ else rpmbuild -ta graphviz-${GV_VERSION}.tar.gz | tee >(ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log) fi fi -DIR=Packages/${COLLECTION}/${ID}/${VERSION_ID} -ARCH=$( uname -m ) -mkdir -p ${DIR}/os/${ARCH} -mkdir -p ${DIR}/debug/${ARCH} -mkdir -p ${DIR}/source if [ "${build_system}" = "cmake" ]; then if [ "${ID_LIKE}" = "debian" ]; then mv build/*.deb ${DIR}/os/${ARCH}/ -- 2.40.0