diff options
author | Qrius <[email protected]> | 2024-09-26 00:11:05 +0200 |
---|---|---|
committer | Qrius <[email protected]> | 2024-09-26 00:11:05 +0200 |
commit | dfde88c635ce06ce98a4112cef9c2d8fe99a516b (patch) | |
tree | ee589cb9fd88027f488a4354c9213ead37733618 /packaging/package_debian.sh | |
parent | 4eaf1f1327d0b88a6a5f937bb646753e639d4be7 (diff) | |
download | skaldpress-dfde88c635ce06ce98a4112cef9c2d8fe99a516b.tar.gz skaldpress-dfde88c635ce06ce98a4112cef9c2d8fe99a516b.zip |
Add debian packaging script
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 |