Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/postinstall Remove the "stat" shell function (stat ...
details: https://anonhg.NetBSD.org/src/rev/ea35dc257b08
branches: trunk
changeset: 780986:ea35dc257b08
user: apb <apb%NetBSD.org@localhost>
date: Tue Aug 14 10:38:40 2012 +0000
description:
Remove the "stat" shell function (stat op format target value).
It has been unused since revision 1.14 dated 2006-05-30.
diffstat:
usr.sbin/postinstall/postinstall | 27 +--------------------------
1 files changed, 1 insertions(+), 26 deletions(-)
diffs (43 lines):
diff -r b85a2ade5ffb -r ea35dc257b08 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall Tue Aug 14 08:23:30 2012 +0000
+++ b/usr.sbin/postinstall/postinstall Tue Aug 14 10:38:40 2012 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index