Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/postinstall FONTCONFIG_DIR not existing does not ne...



details:   https://anonhg.NetBSD.org/src/rev/f6a7fe227a6b
branches:  trunk
changeset: 331469:f6a7fe227a6b
user:      roy <roy%NetBSD.org@localhost>
date:      Mon Aug 11 12:49:01 2014 +0000

description:
FONTCONFIG_DIR not existing does not need to be fixed.

diffstat:

 usr.sbin/postinstall/postinstall |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r c609e0f2cf85 -r f6a7fe227a6b usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Mon Aug 11 11:51:45 2014 +0000
+++ b/usr.sbin/postinstall/postinstall  Mon Aug 11 12:49:01 2014 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.175 2014/08/04 21:56:30 apb Exp $
+# $NetBSD: postinstall,v 1.176 2014/08/11 12:49:01 roy Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -941,6 +941,11 @@
                FONTCONFIG_DIR="${XSRC_DIR}/external/mit/fontconfig/dist/conf.d"
        fi
 
+       if [ ! -d "${FONTCONFIG_DIR}" ]; then
+               msg "${FONTCONFIG_DIR} is not a directory; skipping check"
+               return 0
+       fi
+
        populate_dir "$op" false "${FONTCONFIG_DIR}" "${DEST_DIR}/etc/fonts/conf.avail" 444 \
                10-autohint.conf \
                10-no-sub-pixel.conf \



Home | Main Index | Thread Index | Old Index