summaryrefslogblamecommitdiff
path: root/packaging/package_debian.sh
blob: 6549717f7ec4cc2ade9e8d07db6440d94f69f945 (plain) (tree)
1
2
3

           
               

















                                                 
                                   

                                      


                           
#!/bin/bash
set -x
set -o pipefail

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 target/release/smp ${bindir}/smp
cp skaldpress.1 ${mandir}/skaldpress.1
cp smp.1 ${mandir}/smp.1

cd ${tmpdir}
dpkg-deb --build skaldpress