File: makepackage

package info (click to toggle)
lessdisks 0.5.3cvs.20040906-16
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,480 kB
  • ctags: 271
  • sloc: sh: 3,058; makefile: 92
file content (26 lines) | stat: -rwxr-xr-x 632 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

# copyright 2004 vagrant@freegeek.org, distributed under the terms of the
# GNU General Public License version 2 or any later version.

if [ ! -e debian/rules ] && [ -e distrib/debian ]; then
  ln -s distrib/debian
fi

fakeroot debian/rules clean
cvs update
# try to automatically generate the changelog before building package
if [ -n $(which cvs2cl) ]; then
  cvs2cl
else
  echo  "creating dummy ChangeLog- install cvs2cl for normal changelog"
  touch ChangeLog
fi
fakeroot dpkg-buildpackage

# clean up, unless told otherwise
test "$1" = "noclean" || fakeroot debian/rules clean

if [ -L debian ]; then
  rm debian
fi