From 9fe031c015a9ef274cf03fc2fab22c361c93eeb8 Mon Sep 17 00:00:00 2001 From: Daniel Joseph Barnhart Clark Date: Mon, 4 Sep 2006 17:56:03 +0000 Subject: EncapPackages: Make sure /usr/local/man exists and is a directory git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2186 ce84e21b-d406-0410-9b95-82705330c041 --- encap/INSTALL | 1 - encap/src/makeself-dist/makedist.sh | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'encap') diff --git a/encap/INSTALL b/encap/INSTALL index 76541a489..1e9209fa7 100644 --- a/encap/INSTALL +++ b/encap/INSTALL @@ -11,7 +11,6 @@ EncapPackages | EncapReadme | '''EncapInstall''' | EncapHowto install the gcc bug fix at http://www.openssl.org/~appro/values.c by running "`ksh -f values.c`" as root (or openssl will segfault) * GNU make (make sure "gmake" links to GNU make on non-GNU platforms) - * /usr/local/man should be a directory, not a symbolic link * epkg (the encap package manager) * Canonical website is http://www.encap.org/epkg * Mirror of epkg binaries is available at http://www.dclark.us/mirror/ diff --git a/encap/src/makeself-dist/makedist.sh b/encap/src/makeself-dist/makedist.sh index 68aee6c99..48f257fc8 100755 --- a/encap/src/makeself-dist/makedist.sh +++ b/encap/src/makeself-dist/makedist.sh @@ -95,6 +95,11 @@ umask 002 # Local Variables LOC_INSTALLDIR="\`pwd\`" +# Make sure /usr/local/man exists +if [ ! -d /usr/local ]; then mkdir /usr/local; fi +if [ -h /usr/local/man ]; then rm /usr/local/man; fi +if [ ! -d /usr/local/man ]; then mkdir /usr/local/man; fi + # Install epkg if it isn't installed if [ ! -h "$EPKG" -o ! -d "$ENCAPDIR/epkg-2.3.[89]" ]; then printf "epkg : (cd / && tar xf \$LOC_INSTALLDIR/epkg.tar)\n" -- cgit v1.2.3-1-g7c22