| 1 |
#! /bin/bash |
| 2 |
# pbuilder -- personal Debian package builder |
| 3 |
# Copyright © 2001-2007 Junichi Uekawa <[email protected]> |
| 4 |
# |
| 5 |
# This program is free software; you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU General Public License as published by |
| 7 |
# the Free Software Foundation; either version 2 of the License, or |
| 8 |
# (at your option) any later version. |
| 9 |
# |
| 10 |
# This program is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with this program; if not, write to the Free Software |
| 17 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
############################################################################### |
| 19 |
|
| 20 |
export PBUILDER_PKGDATADIR="${PBUILDER_PKGDATADIR:-$PBUILDER_ROOT/usr/share/pbuilder}" |
| 21 |
export PBUILDER_SYSCONFDIR="${PBUILDER_SYSCONFDIR:-$PBUILDER_ROOT/etc}" |
| 22 |
|
| 23 |
for RCFILE in \ |
| 24 |
"$PBUILDER_PKGDATADIR"/pbuilderrc \ |
| 25 |
"$PBUILDER_SYSCONFDIR"/pbuilderrc \ |
| 26 |
"$HOME"/.pbuilderrc; do |
| 27 |
# log() is not available |
| 28 |
if [ -e "$RCFILE" ]; then |
| 29 |
. "$RCFILE" || ( echo "E: $RCFILE could not be loaded" >&2 ; exit 1 ) |
| 30 |
else |
| 31 |
echo "W: $RCFILE does not exist" >&2 |
| 32 |
fi |
| 33 |
# deprecated in v0.216 |
| 34 |
if [ -n "$PKGNAME_LOGFILE_EXTENTION" ] ; then |
| 35 |
echo "W: The configuration option PKGNAME_LOGFILE_EXTENTION is deprecated in favour of PKGNAME_LOGFILE_EXTENSION. Though, while you have the former set it'll take precedence over the latter." |
| 36 |
echo "W: PKGNAME_LOGFILE_EXTENTION will be removed at some point, please update your config!" |
| 37 |
PKGNAME_LOGFILE_EXTENSION="$PKGNAME_LOGFILE_EXTENTION" |
| 38 |
fi |
| 39 |
# deprecated in v0.228 |
| 40 |
if [ -n "${USERUNSHM-}" ]; then |
| 41 |
# wait some more before warning about this deprecation |
| 42 |
USESHM="$USERUNSHM" |
| 43 |
fi |
| 44 |
done |