talkatu/builders

file isExecutable
makepkg is now spitting out .tar.zst files instead of .tar.xz files
#!/bin/sh -ex
# Copyright (C) 2015-2017 Gary Kramlich <grim@reaperworld.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
cd ${CONVEY_WORKSPACE}
ARTIFACTS_DIR=${CONVEY_WORKSPACE}/debian-${DISTRIBUTION}-${ARCH}
mkdir -p ${ARTIFACTS_DIR}
cp -a ${CONVEY_WORKSPACE}/packaging/debian debian
HG_ID=$(hg id -i)
BUILD_NUMBER="${BUILD_NUMBER:-0}"
BUILD_VERSION="${BUILD_NUMBER}~${HG_ID}"
VERSION=$(dpkg-parsechangelog --show-field Version)
dch -D ${DISTRIBUTION} -v ${VERSION}.${BUILD_VERSION} "build for ${HG_ID}"
debuild -us -uc
find -name "*-junit.xml" -exec cp {} ${ARTIFACTS_DIR} \;
cd ..
DEBS_DIR="${ARTIFACTS_DIR}/debs"
mkdir -p ${DEBS_DIR}
cp *.changes ${DEBS_DIR}
LINE_NO=$(grep -n Files: *.changes | cut -d: -f1)
for FILENAME in $(cat *.changes | tail -n +${LINE_NO} | awk '{print $5}'); do
mv ${FILENAME} ${DEBS_DIR}
done