summaryrefslogtreecommitdiff
path: root/distrib/sets/checkflist
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2014-05-03 15:18:27 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2014-05-03 15:18:27 +0000
commitf70593554da7280010548410656409ff9c5aaf97 (patch)
tree07df7500d3addd1703e08679da8486f18f355e99 /distrib/sets/checkflist
parent346c1640752d23d0ab38aaeb2f3a219502b6b512 (diff)
spring cleaning for xenocara/ .. tedu unused Release arg and sync with base functionality
Diffstat (limited to 'distrib/sets/checkflist')
-rw-r--r--distrib/sets/checkflist17
1 files changed, 10 insertions, 7 deletions
diff --git a/distrib/sets/checkflist b/distrib/sets/checkflist
index 75a598d10..99eba4b8a 100644
--- a/distrib/sets/checkflist
+++ b/distrib/sets/checkflist
@@ -1,5 +1,5 @@
#!/bin/sh -x
-# $OpenBSD: checkflist,v 1.1 2006/11/27 11:25:45 matthieu Exp $
+# $OpenBSD: checkflist,v 1.2 2014/05/03 15:18:26 todd Exp $
#
# Copyright (c) 2001 Theo de Raadt
# All rights reserved.
@@ -29,12 +29,15 @@ if [ "X${DESTDIR}" = "X" ]; then
exit 1
fi
-Release=$1
-
+diffarg=""
+if [ "$1" = "-u" ]; then
+ diffarg="-u"
+ shift
+fi
-TMP=`mktemp -d /tmp/_xckr.XXXXXXXXXX` || exit 1
-trap 'rm -rf $TMP' 0 1 15
+TMP=`mktemp /tmp/_xckr.XXXXXXXXXX` || exit 1
+trap 'rm -f $TMP' 0 1 15
-sh makeflist $Release > $TMP/_CHECK
+sh makeflist > $TMP
( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | \
- grep -v -e '^\.$' | sort -H | diff -u $TMP/_CHECK -
+ grep -v -e '^\.$' | sort -H | diff $diffarg $TMP -