blob: 920574f2be2c1b03a13030552a4ffe5b358e26b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/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
cp smp.1 ${mandir}/smp.1
cd ${tmpdir}
dpkg-deb --build skaldpress
|