| 1 |
#! /bin/bash |
| 2 |
# This documents those features of pbuilder that are unimplemented in lvmbuilder |
| 3 |
# lvmbuilder -- Debian package builder using LVM |
| 4 |
# Copyright (C) 2007 Kapil Hari Paranjape |
| 5 |
# based on: |
| 6 |
# pbuilder -- personal Debian package builder |
| 7 |
# Copyright (C) 2001-2006 Junichi Uekawa |
| 8 |
# |
| 9 |
# This program is free software; you can redistribute it and/or modify |
| 10 |
# it under the terms of the GNU General Public License as published by |
| 11 |
# the Free Software Foundation; either version 2 of the License, or |
| 12 |
# (at your option) any later version. |
| 13 |
# |
| 14 |
# This program is distributed in the hope that it will be useful, |
| 15 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
# GNU General Public License for more details. |
| 18 |
# |
| 19 |
# You should have received a copy of the GNU General Public License |
| 20 |
# along with this program; if not, write to the Free Software |
| 21 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 22 |
|
| 23 |
set -e |
| 24 |
|
| 25 |
# Currently we only warn if some unimplemented option or variable |
| 26 |
# is given on the lvmbuilder command line. |
| 27 |
function warn_option(){ |
| 28 |
OP=$1; |
| 29 |
echo "W: Cannot use variable pbuilder option/variable $OP with lvmbuilder" >&2 |
| 30 |
} |
| 31 |
# This portion is not yet used but lists the unimplemented or |
| 32 |
# undefined variables. |
| 33 |
LVMBADVARS=("APTCACHEHARDLINK" \ |
| 34 |
"HOOKDIR" \ |
| 35 |
"BASETGZ" \ |
| 36 |
"PRESERVE_BUILDPLACE" \ |
| 37 |
"BINDMOUNTS" \ |
| 38 |
"CHROOTEXEC" \ |
| 39 |
"INTERNAL_BUILD_UML" \ |
| 40 |
"IGNORE_UMOUNT") |
| 41 |
|
| 42 |
function unimplemented(){ |
| 43 |
for var in "${LVMBADVARS[@]}" |
| 44 |
do |
| 45 |
if [ -n "${!var}" ] |
| 46 |
then |
| 47 |
echo "W: Cannot use variable $var with lvmbuilder." >&2 |
| 48 |
fi |
| 49 |
done |
| 50 |
} |
| 51 |
|