GNU cpio (with --help support)
CVS patchset: 1203
CVS date: 1996/12/02 23:27:39
IFS=:
for n in $PATH:/opt/gnu/bin; do
if test -f $n/cpio; then
- $n/cpio --help >/dev/null 2>/dev/null
+ $n/cpio --quiet >/dev/null 2>/dev/null
if test "$?" = "0"; then
CPIOBIN="$n/cpio";
fi
if test -z "$CPIOBIN"; then
echo "no"
echo ""
- echo "RPM will not work without GNU cpio."
+ echo "RPM will not work without GNU cpio 2.4.2 or later."
exit 1
else
echo "yes"