aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-checkparams
blob: ace562479d4e1f560e72896fd76896bffbc83a30 (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
#! /bin/bash 
# this is sourced from pbuilder packages to process the optional parameters.

while [ -n $1 ]; do
  case "$1" in 
    --basetgz) 
      BASETGZ=$(realink -f "$2");
      shift; shift;
      ;;
    --buildplace)
      BUILDPLACE=$(readlink -f "$2");
      shift; shift;
      ;;
    --mirror)
      MIRROR="$2";
      shift; shift;
      ;;
    --http-proxy)
      export http_proxy="$2";
      shift; shift;
      ;;
    --distribution)
      DISTRIBUTION="$2";
      shift; shift;
      ;;
    --help)
      cat <<EOF
Command Line Options:
 --basetgz [base.tgz location]
 --buildplace [location of build]
 --mirror [mirror location]
 --http-proxy [proxy]
 --distribution [distribution(woody/sid)]
EOF
      exit 1;
      ;;
    *)
      break;
      ;;
  esac
done