diff debian/build.sh @ 0:65c01f57bdce V2.1.2

Initial commit
author ivo <ivo@UFO-Net.nl>
date Thu, 07 Oct 2010 15:53:01 +0200
parents
children d2b0f399a9aa
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/build.sh	Thu Oct 07 15:53:01 2010 +0200
@@ -0,0 +1,12 @@
+#!/bin/sh
+VERSION=`cat ../version`-0
+ARCH=`dpkg --print-architecture`
+rm -r data 2>/dev/null
+cp -r static data
+mkdir -p data/usr data/usr/sbin data/DEBIAN
+sed "s/%ARCHITECTURE%/${ARCH}/" -i data/DEBIAN/control
+sed "s/%VERSION%/${VERSION}/" -i data/DEBIAN/control
+cp ../out/quicktun.debian data/usr/sbin/
+cp ../out/quicktun.keypair data/usr/sbin/
+fakeroot dpkg-deb --build data quicktun-${VERSION}_${ARCH}.deb
+mv quicktun*.deb ../out/