aboutsummaryrefslogtreecommitdiffstats
path: root/build/ci/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/ci/build.sh')
-rwxr-xr-xbuild/ci/build.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/ci/build.sh b/build/ci/build.sh
index 97d570b5e016..0e0c2fbab0cf 100755
--- a/build/ci/build.sh
+++ b/build/ci/build.sh
@@ -42,6 +42,7 @@ while getopts a:b:c:d:s: opt; do
test) ;;
install) ;;
distcheck) ;;
+ artifact) ;;
*) inputerror "Invalid action (-a)" ;;
esac
ACTIONS="${ACTIONS} ${OPTARG}"
@@ -147,12 +148,16 @@ for action in ${ACTIONS}; do
install)
${MAKE} ${MAKE_ARGS} install DESTDIR="${BUILDDIR}/destdir"
RET="$?"
- cd ${BUILDDIR}/destdir && ls -lR .
+ cd "${BUILDDIR}/destdir" && ls -lR .
;;
distcheck)
${MAKE} ${MAKE_ARGS} distcheck
RET="$?"
;;
+ artifact)
+ tar -c -J -C "${BUILDDIR}/destdir" -f "${CURDIR}/libarchive.tar.xz" usr
+ ls -l "${CURDIR}/libarchive.tar.xz"
+ ;;
esac
if [ "${RET}" != "0" ]; then
exit "${RET}"