-Sat Sep 13 15:45:10 CDT 2003 Adam Heath <doogie@debian.org>
+Sat Sep 13 15:56:13 CDT 2003 Adam Heath <doogie@debian.org>
+
+ * automake/tools.m4, dselect/Makefile.in, methods/disk.setup,
+ scripts/dpkg-parsechangelog.pl, scripts/dpkg-source.pl: Apply patch to
+ make dpkg work with POSIX 1003.1-2001.
+
+Sat Sep 13 15:40:39 CDT 2003 Adam Heath <doogie@debian.org>
* lib/database.c: Apply patch to change hashing function, and increase
bin size, for the package database.
AC_BEFORE([AC_CANONICAL_BUILD])
dnl Quick check
if test "$host_alias" = ""; then
- if test $host = NONE -a $build != NONE; then
+ if test $host = NONE && test $build != NONE; then
thost=$nonopt
else
thost=$host
fi
- if test $thost != $build -a $thost != NONE; then
+ if test $thost != $build && test $thost != NONE; then
ac_tool_prefix=${thost}-
ac_tool_dir=${thost}
else
AC_CHECK_PROG($1, ${ac_tool_prefix}$2, ${ac_tool_prefix}$2,
ifelse([$3], , [$2], ), $4, $5)
if test "$ac_tool_dir" != ""; then
- if test -z "$ac_cv_prog_$1" -a "$5" != "/usr/${ac_tool_dir}/bin/$2" -a \
- "$5" != "/usr/local/${ac_tool_dir}/bin/$2"; then
+ if test -z "$ac_cv_prog_$1" && test "$5" != "/usr/${ac_tool_dir}/bin/$2" &&
+ test "$5" != "/usr/local/${ac_tool_dir}/bin/$2"; then
if test -f /usr/${ac_tool_dir}/bin/$2; then $1="/usr/${ac_tool_dir}/bin/$2"
elif test -f /usr/local/${ac_tool_dir}/bin/$2; then $1="/usr/local/${ac_tool_dir}/bin/$2"
fi
AC_CHECK_TOOL(CC, cc, cc, , , /usr/ucb/cc)
test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
fi
-if test -n "$ac_tool_prefix" -a "`echo $CC | grep '$ac_tool_prefix'`" = "" \
- -a "`echo $CC | grep -- '-b'`" = ""; then
+if test -n "$ac_tool_prefix" &&
+ test "`echo $CC | grep '$ac_tool_prefix'`" = "" &&
+ test "`echo $CC | grep -- '-b'`" = ""; then
if $CC -v 2>&1 | grep -q gcc; then
AC_CACHE_CHECK([if $CC -b${ac_tool_dir} works], tl_cv_prog_cc_bhost,[
old_cc="${CC}"
AC_PROVIDE([AC_PROG_CXX])dnl
tl_CHECK_TOOLS(CXX, $CCC c++ g++ gcc CC cxx cc++, gcc)
if test -n "$CXX"; then
- if test -n "$ac_tool_prefix" -a "`echo $CXX | grep '$ac_tool_prefix'`" = "" \
- -a "`echo $CXX | grep -- '-b'`" = ""; then
+ if test -n "$ac_tool_prefix" &&
+ test "`echo $CXX | grep '$ac_tool_prefix'`" = "" &&
+ test "`echo $CXX | grep -- '-b'`" = ""; then
if $CXX -v 2>&1 | grep -q gcc; then
AC_CACHE_CHECK([if $CXX -b${ac_tool_dir} works], tl_cv_prog_cxx_bhost,[
old_cxx="${CXX}"
do
echo \
'Several CD-ROMs (or other ISO9660 filesystems) are mounted:'
- egrep 'type iso9660 \([^)]*\)$' <$tp.m | nl
+ grep 'type iso9660 ([^)]*)$' <$tp.m | nl
echo -n \
'Is it any of these ? Type a number, or `n'\'' for none. '
read response
fi
if ! ( find "$mountpoint$2/" -follow -name '*.deb' -print \
- | head -1 ) 2>/dev/null | grep . >/dev/null
+ | head -n 1 ) 2>/dev/null | grep . >/dev/null
then
echo "\`$2' does not contain any *.deb packages. Hmmpf."
return