blob: 73ad0cc4d16e5058a238df84641f192fcf298748 (
plain) (
tree)
|
|
#!/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
|