]> granicus.if.org Git - graphviz/commitdiff
ci: [nfc] fuse tarball;mv steps into one
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Dec 2021 18:59:14 +0000 (10:59 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Dec 2021 06:15:56 +0000 (22:15 -0800)
When we are immediately going to the move a created tarball to a new location,
we may as well just save time and create it in the eventual location to begin
with.

ci/build.sh

index b3cf1c64e70a508723042d67ac10f5a70fbffc1c..d0ae4e687a4443eada62227b3c45a985b6a30c60 100755 (executable)
@@ -77,8 +77,7 @@ else
         ./configure --enable-lefty --prefix=$( pwd )/build --with-quartz=yes
         make
         make install
-        tar cfz graphviz-${GV_VERSION}-${ARCH}.tar.gz --options gzip:compression-level=9 build
-        mv graphviz-${GV_VERSION}-${ARCH}.tar.gz ${DIR}/
+        tar cfz ${DIR}/graphviz-${GV_VERSION}-${ARCH}.tar.gz --options gzip:compression-level=9 build
     elif [ "${OSTYPE}" = "cygwin" -o "${OSTYPE}" = "msys" ]; then
         if [ "${OSTYPE}" = "msys" ]; then
             # ensure that MinGW tcl shell is used in order to find tcl functions
@@ -89,8 +88,7 @@ else
             ./configure ${CONFIGURE_OPTIONS:-} --prefix=$( pwd )/build | tee >(./ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log)
             make
             make install
-            tar cf - -C build . | xz -9 -c - > graphviz-${GV_VERSION}-${ARCH}.tar.xz
-            mv graphviz-${GV_VERSION}-${ARCH}.tar.xz ${DIR}/
+            tar cf - -C build . | xz -9 -c - > ${DIR}/graphviz-${GV_VERSION}-${ARCH}.tar.xz
         else
             tar xfz graphviz-${GV_VERSION}.tar.gz
             pushd graphviz-${GV_VERSION}
@@ -98,8 +96,7 @@ else
             make
             make install
             popd
-            tar cf - -C graphviz-${GV_VERSION}/build . | xz -9 -c - > graphviz-${GV_VERSION}-${ARCH}.tar.xz
-            mv graphviz-${GV_VERSION}-${ARCH}.tar.xz ${DIR}/
+            tar cf - -C graphviz-${GV_VERSION}/build . | xz -9 -c - > ${DIR}/graphviz-${GV_VERSION}-${ARCH}.tar.xz
         fi
     else
         echo "Error: OSTYPE=${OSTYPE} is unknown" >&2