updated build system

This commit is contained in:
2024-06-27 12:04:37 -05:00
parent d96c6012c5
commit 4d555bce96
4 changed files with 39 additions and 9 deletions

21
scripts/make_package.sh Normal file
View File

@ -0,0 +1,21 @@
#!/bin/bash
DEST_DIR=$1
CURRENT_DIR=$(dirname "$0")
CURRENT_DIR=$(realpath ${CURRENT_DIR})
. "${CURRENT_DIR}/env.sh" "$2" "$3" "$4" "$5" "$6"
if [ ! -d "${PROJECT_DIST_DIR}" ]; then
echo "Dist directory not found: ${PROJECT_DIST_DIR}"
exit 1
fi
if [ "${DEST_DIR}" == "" ] || [ ! -d "${DEST_DIR}" ]; then
echo "Destination directory not found: ${DEST_DIR}"
exit 1
fi
PACKAGE_ROOT=${PROJECT_DIST_DIR}/..
PACKAGE_ROOT=$(realpath ${PACKAGE_ROOT})