1#!/bin/sh
2
3
4# mpatrol
5# A library for controlling and tracing dynamic memory allocations.
6# Copyright (C) 1997-2002 Graeme S. Roy <graeme.roy@analog.com>
7#
8# This library is free software; you can redistribute it and/or
9# modify it under the terms of the GNU Library General Public
10# License as published by the Free Software Foundation; either
11# version 2 of the License, or (at your option) any later version.
12#
13# This library is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16# Library General Public License for more details.
17#
18# You should have received a copy of the GNU Library General Public
19# License along with this library; if not, write to the Free
20# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21# MA 02111-1307, USA.
22
23
24# UNIX shell script to build a Debian package file
25
26
27# $Id: build,v 1.3 2002/01/08 20:19:01 graeme Exp $
28
29
30arch=i386
31version=1.4.8
32revision=1
33
34
35# Build the binary and source package files.  The debuild command expects
36# the debian subdirectory to be located at the top level directory of the
37# distribution, so we create a symbolic link to this directory.  It also
38# expects the original mpatrol distribution archive to be located in the
39# directory above.
40
41cd ../..
42ln -s -f pkg/debian debian
43debuild -rfakeroot -sa -tc
44rm -f debian
45cd pkg/debian
46mv ../../../mpatrol_$version.orig.tar.gz .
47mv ../../../mpatrol_$version-$revision.dsc .
48mv ../../../mpatrol_$version-$revision.diff.gz .
49mv ../../../mpatrol_$version-$revision_$arch.deb .
50mv ../../../mpatrol_$version-$revision_$arch.changes .
51