#!/bin/sh # run this in source directory to easily make the debian package&pals. # be sure the source is configured before running. if [ -z "$1" ] ; then echo "usage: $0 " echo "e.g.: $0 0.1.2" exit 1 fi OUT_DIR=debian-packages NV="codecrypt-$1" DIST="$NV.tar.gz" mkdir -p "$OUT_DIR" && \ make dist && \ cp "$DIST" "$OUT_DIR" && \ tar xzf "$DIST" -C "$OUT_DIR" && \ cp -a debian "$OUT_DIR/$NV/" && \ cd "$OUT_DIR/$NV" && \ debuild && \ cd .. && \ rm -r "$NV" && \ echo "ready?"