diff options
author | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-09-04 17:56:03 +0000 |
---|---|---|
committer | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-09-04 17:56:03 +0000 |
commit | 9fe031c015a9ef274cf03fc2fab22c361c93eeb8 (patch) | |
tree | 16c2bf3b73b2e9c6344fe5ed785a4e2d0c60e0e8 | |
parent | ad0e43f312bebb22b621dc0e10cc2e4c6a8e6777 (diff) | |
download | bcfg2-9fe031c015a9ef274cf03fc2fab22c361c93eeb8.tar.gz bcfg2-9fe031c015a9ef274cf03fc2fab22c361c93eeb8.tar.bz2 bcfg2-9fe031c015a9ef274cf03fc2fab22c361c93eeb8.zip |
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
-rw-r--r-- | encap/INSTALL | 1 | ||||
-rwxr-xr-x | encap/src/makeself-dist/makedist.sh | 5 |
2 files changed, 5 insertions, 1 deletions
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" |