Module Name: src
Committed By: apb
Date: Tue Aug 14 10:38:41 UTC 2012
Modified Files:
src/usr.sbin/postinstall: postinstall
Log Message:
Remove the "stat" shell function (stat op format target value).
It has been unused since revision 1.14 dated 2006-05-30.
To generate a diff of this commit:
cvs rdiff -u -r1.141 -r1.142 src/usr.sbin/postinstall/postinstall
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.141 src/usr.sbin/postinstall/postinstall:1.142
--- src/usr.sbin/postinstall/postinstall:1.141 Mon Aug 13 18:22:25 2012
+++ src/usr.sbin/postinstall/postinstall Tue Aug 14 10:38:40 2012
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postinstall,v 1.141 2012/08/13 18:22:25 martin Exp $
+# $NetBSD: postinstall,v 1.142 2012/08/14 10:38:40 apb Exp $
#
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -411,31 +411,6 @@ find_file_in_dirlist()
return 1
}
-# stat op format target value
-# Call stat(1) on the given target according to the given format,
-# if stat(1) is available (it is presumed to live in /usr/bin).
-# If it is not available, this routine will always succeed, otherwise
-# it returns 0 or 1, depending on whether or not the output from
-# stat(1) matches the expected value.
-#
-stat()
-{
- _stop="$1"
- _stfmt="$2"
- _sttgt="$3"
- _stval="$4"
-
- if [ ! -x /usr/bin/stat ]; then
- msg \
- "(/usr/bin/stat not available; skipping ${_stop} on ${_sttgt})"
- return 0
- fi
-
- _stres="$(/usr/bin/stat -q -f "${_stfmt}" "${_sttgt}")"
- [ "${_stres}" = "${_stval}" ]
- return $?
-}
-
# file_exists_exact path
# Returns true if a file exists in the ${DEST_DIR} whose name
# is exactly ${path}, interpreted in a case-sensitive way