1997-02-18 09:58:56 +03:00
|
|
|
#! /bin/sh --
|
|
|
|
#
|
1997-11-09 23:47:29 +03:00
|
|
|
# $NetBSD: checkflist,v 1.5 1997/11/09 20:47:29 chopps Exp $
|
1997-02-18 09:58:56 +03:00
|
|
|
#
|
|
|
|
# Verify output of makeflist against contents of $DESTDIR.
|
1994-08-29 19:21:02 +04:00
|
|
|
|
1997-02-18 09:58:56 +03:00
|
|
|
[ "$DESTDIR" ] || {
|
1994-08-29 19:21:02 +04:00
|
|
|
echo DESTDIR must be set
|
|
|
|
exit 1
|
1997-02-18 09:58:56 +03:00
|
|
|
}
|
1994-08-29 19:21:02 +04:00
|
|
|
|
1997-10-28 16:35:23 +03:00
|
|
|
if [ "$1" = "-x11" ]; then
|
|
|
|
sh makeflist -x11 > /tmp/_CHECK.$$
|
1997-11-09 23:47:29 +03:00
|
|
|
elif [ "$1" = "-both" ]; then
|
|
|
|
sh makeflist -both > /tmp/_CHECK.$$
|
1997-10-28 16:35:23 +03:00
|
|
|
else
|
|
|
|
sh makeflist > /tmp/_CHECK.$$
|
|
|
|
fi
|
1997-02-18 09:58:56 +03:00
|
|
|
( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | sort | \
|
1994-08-29 19:21:02 +04:00
|
|
|
diff /tmp/_CHECK.$$ -
|
|
|
|
/bin/rm -f /tmp/_CHECK.$$
|