Look for MAKEDEV.local in both ${SRC_DIR}/dev/ and ${SRC_DIR}/etc/,

so that 'postinstall check makedev' works whether the sources told
by the -s argument are a NetBSD source tree, etc.tgz, or a DESTDIR.
This commit is contained in:
dyoung 2009-02-25 01:11:50 +00:00
parent 1e56a266d4
commit ac7c88b5d2
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: postinstall,v 1.85 2009/02/22 15:27:44 yamt Exp $
# $NetBSD: postinstall,v 1.86 2009/02/25 01:11:50 dyoung Exp $
#
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@ -768,7 +768,11 @@ do_makedev()
|| return 1
# ${dir} is set by find_file_in_dirlist()
compare_dir "$1" "${dir}" "${DEST_DIR}/dev" 555 MAKEDEV
compare_dir "$1" "${SRC_DIR}/dev" "${DEST_DIR}/dev" 555 MAKEDEV.local
find_file_in_dirlist MAKEDEV.local "MAKEDEV.local" \
"${SRC_DIR}/etc" "${SRC_DIR}/dev" \
|| return 1
# ${dir} is set by find_file_in_dirlist()
compare_dir "$1" "${dir}" "${DEST_DIR}/dev" 555 MAKEDEV.local
}
#