debian packaging tool
This commit is contained in:
parent
0c949d9975
commit
26d3eaf00a
25
build-debian-package.sh
Executable file
25
build-debian-package.sh
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/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 <version>"
|
||||||
|
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?"
|
Loading…
Reference in a new issue