]> granicus.if.org Git - graphviz/commitdiff
Add generation of configure.log to build.sh
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 7 Jun 2020 14:04:16 +0000 (16:04 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 13 Jun 2020 06:16:54 +0000 (08:16 +0200)
ci/build.sh

index ebd61f1bd5bf0308e3807ecff2deb1a32e08e82a..a89e2417a56d9ef9631b0c007127695d68b1c2d7 100755 (executable)
@@ -14,12 +14,14 @@ else
 fi
 GV_VERSION=$( cat VERSION )
 COLLECTION=$( cat COLLECTION )
+META_DATA_DIR=Metadata/${COLLECTION}/${ID}/${VERSION_ID}
+mkdir -p ${META_DATA_DIR}
 if [ "${ID_LIKE}" = "debian" ]; then
     tar xfz graphviz-${GV_VERSION}.tar.gz
-    (cd graphviz-${GV_VERSION}; fakeroot make -f debian/rules binary)
+    (cd graphviz-${GV_VERSION}; fakeroot make -f debian/rules binary) | tee >(ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log)
 else
     rm -rf ${HOME}/rpmbuild
-    rpmbuild -ta graphviz-${GV_VERSION}.tar.gz
+    rpmbuild -ta graphviz-${GV_VERSION}.tar.gz | tee >(ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log)
 fi
 DIR=Packages/${COLLECTION}/${ID}/${VERSION_ID}
 ARCH=$( uname -m )