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 /encap/src | |
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
Diffstat (limited to 'encap/src')
-rwxr-xr-x | encap/src/makeself-dist/makedist.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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" |