summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/package_debian.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/packaging/package_debian.sh b/packaging/package_debian.sh
index 6549717..f583ce4 100755
--- a/packaging/package_debian.sh
+++ b/packaging/package_debian.sh
@@ -5,11 +5,12 @@ set -o pipefail
tmpdir=$(mktemp -d)
dir="${tmpdir}/skaldpress"
+origdir="$(pwd)"
mkdir -p ${dir}
rm -r ${dir}
mkdir -p ${dir}
-cargo build --release
+cargo build --features guile --release
bindir=${dir}/usr/local/bin
mkdir -p ${bindir}
@@ -25,3 +26,7 @@ cp smp.1 ${mandir}/smp.1
cd ${tmpdir}
dpkg-deb --build skaldpress
+
+cd "${origdir}"
+cp "${tmpdir}/skaldpress.deb" "$(pwd)/skaldpress.deb"
+rm -r "${tmpdir}"