From a95dbf7a69a906b9efdfc51acdf83cc69957eefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 26 Oct 2005 10:16:50 +0000 Subject: [PATCH] Add variable INSTALL_CATPAGES that controls if cat pages are installed, defaults to true. From Johnny Lam . git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16233 ec53bebd-3082-4978-b11e-865c3cabbd6b --- cf/install-catman.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cf/install-catman.sh b/cf/install-catman.sh index bd4aa58ae..80bbd8890 100755 --- a/cf/install-catman.sh +++ b/cf/install-catman.sh @@ -9,6 +9,7 @@ mkinstalldirs="$1"; shift srcdir="$1"; shift manbase="$1"; shift suffix="$1"; shift +catinstall="${INSTALL_CATPAGES-yes}" for f in "$@"; do base=`echo "$f" | sed 's/\(.*\)\.\([^.]*\)$/\1/'` @@ -17,7 +18,7 @@ for f in "$@"; do catdir="$manbase/cat$section" c="$base.cat$section" - if test -f "$srcdir/$c"; then + if test "$catinstall" = yes -a -f "$srcdir/$c"; then if test \! -d "$catdir"; then eval "$mkinstalldirs $catdir" fi @@ -36,7 +37,7 @@ for f in "$@"; do break fi done - if test -f "$srcdir/$c"; then + if test "$catinstall" = yes -a -f "$srcdir/$c"; then target="$catdir/$link.$suffix" for cmd in "ln -f $catdir/$base.$suffix $target" \ "ln -fs $base.$suffix $target" \