aboutsummaryrefslogtreecommitdiff
path: root/pbuilder
blob: 9cf953367bcf5a33573ae499c21f600712abd5c2 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! /bin/bash
# pbuilder by Junichi Uekawa <dancer@debian.org> 2001 Aug 25
# Copyright 2001 Junichi Uekawa
#Distributed under GPL version 2 or later

function showhelp () {
    cat <<EOF
pbuilder - a personal builder
Copyright 2001 Junichi Uekawa

pbuilder [operation] [operation options]

command lines:
pbuilder create [--basetgz base.tgz-path] [--distribution woody|sid]
  Creates a base.tgz

pbuilder update [--basetgz base.tgz-path] [--distribution woody|sid]
  Updates a base.tgz

pbuilder build [--buildplace temp-build-path] [--basetgz base.tgz-path] pbuilder_2.2.0-1.dsc
  Builds using the base.tgz

EOF
    exit 1
}

test -z "$1" && showhelp

case "$1" in
 create)
    shift;
    /usr/lib/pbuilder/pbuilder-createbuildenv $@
    ;;
 update)
    shift ;
    /usr/lib/pbuilder/pbuilder-updatebuildenv $@
    ;;
 build)
    shift ;
    /usr/lib/pbuilder/pbuilder-buildpackage $@
    ;;
 *)
    showhelp
    ;;
esac