diff options
Diffstat (limited to 'packaging/package_debian.sh')
-rwxr-xr-x | packaging/package_debian.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packaging/package_debian.sh b/packaging/package_debian.sh new file mode 100755 index 0000000..73ad0cc --- /dev/null +++ b/packaging/package_debian.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -x + +tmpdir=$(mktemp -d) + +dir="${tmpdir}/skaldpress" + +mkdir -p ${dir} +rm -r ${dir} +mkdir -p ${dir} +cargo build --release + +bindir=${dir}/usr/local/bin +mkdir -p ${bindir} + +mandir=${dir}/usr/share/man/man1 +mkdir -p ${mandir} + +cp -r packaging/DEBIAN ${dir}/DEBIAN +cp target/release/skaldpress ${bindir}/skaldpress +#cp skaldpress.1 ${mandir}/skaldpress.1 + +cd ${tmpdir} +dpkg-deb --build skaldpress |