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/src/makeself-dist/makedist.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'encap/src/makeself-dist/makedist.sh') 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