blob: cda481636d19ba49fde3a83a46b6aad9d9e8c88c (
about) (
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
47
48
49
50
51
|
#! /bin/bash
# This documents those features of pbuilder that are unimplemented in lvmbuilder
# lvmbuilder -- Debian package builder using LVM
# Copyright (C) 2007 Kapil Hari Paranjape
# based on:
# pbuilder -- personal Debian package builder
# Copyright (C) 2001-2006 Junichi Uekawa
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
set -e
# Currently we only warn if some unimplemented option or variable
# is given on the lvmbuilder command line.
function warn_option(){
OP=$1;
echo "W: Cannot use variable pbuilder option/variable $OP with lvmbuilder" >&2
}
# This portion is not yet used but lists the unimplemented or
# undefined variables.
LVMBADVARS=("APTCACHEHARDLINK" \
"HOOKDIR" \
"BASETGZ" \
"PRESERVE_BUILDPLACE" \
"BINDMOUNTS" \
"CHROOTEXEC" \
"INTERNAL_BUILD_UML" \
"IGNORE_UMOUNT")
function unimplemented(){
for var in "${LVMBADVARS[@]}"
do
if [ -n "${!var}" ]
then
echo "W: Cannot use variable $var with lvmbuilder." >&2
fi
done
}
|