File: courier-debuild.in

package info (click to toggle)
sysconftool 0.22-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 516 kB
  • sloc: sh: 527; perl: 356; makefile: 171
file content (18 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/bash
#
# Wrapper script for running debuild to build this package.

set -e

f=`cd .. && ls @PACKAGE@-@VERSION@.tar* | sed -n 1p`
rm -rf deb
mkdir deb
cp ../$f deb/`echo $f | sed 's/-/_/;s/.tar./.orig.tar./'`
cd deb
tar xf *
cd @PACKAGE@-@VERSION@
cp -pr packaging/debian .
debuild "$@"
cd ..
rm -rf @PACKAGE@-@VERSION@
echo "Built packages in the deb subdirectory."