Allow the caller to set the output directory for the deb packages using an environment variable. --- scripts/package/builddeb | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index ea33db3..dea0190 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -12,6 +12,10 @@
set -e
+if [ -z $DEB_OUT_DIR ]; then + $DEB_OUT_DIR=".." +fi + # Attempt to find the correct Debian architecture forcearch="" debarch="" @@ -64,7 +68,7 @@ create_package() {
# Create the package dpkg-gencontrol -isp $forcearch -p$pname -P"$pdir" - dpkg --build "$pdir" .. + dpkg --build "$pdir" $DEB_OUT_DIR }
# Some variables and settings used throughout the script