0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-24 00:17:37 +01:00
mongodb/evergreen/packager.py_run.sh
Zack Winter e096a81e82 SERVER-87109 Fix packaging on enterprise-amazon2023-lto (#19324)
GitOrigin-RevId: 1a3a74f4649beb1f8c1812496c13eeb878385003
2024-02-29 02:02:59 +00:00

25 lines
903 B
Bash

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
. "$DIR/prelude.sh"
cd src
set -o errexit
set -o verbose
activate_venv
if [ "${has_packages}" != "true" ]; then
exit 0
# TODO: SERVER-80443 add back validation
# echo "Error: packager run when has_packages is not set to true, please remove the package task from this variant (or variant task group) or set has_packages to true if this variant is intended to run the packager."
# exit 1
fi
if [ -z ${packager_script+x} ]; then
echo "Error: packager run when packager_script is not set, please remove the package task from this variant (or variant task group) or set packager_script if this variant is intended to run the packager."
exit 1
fi
cd buildscripts
$python ${packager_script} --prefix $(pwd)/.. --distros ${packager_distro} --tarball $(pwd)/../mongodb-dist.tgz -s ${version} -m HEAD -a ${packager_arch}
cd ..