install.sh
branchv0.7.x
changeset 680 5365af94a8ec
parent 631 9b4d0e2c97d5
equal deleted inserted replaced
679:b6ef80a8daa2 680:5365af94a8ec
    50 [ -d ${MANDIR}/man1 ] || mkdir -m 0755 -p ${MANDIR}/man1
    50 [ -d ${MANDIR}/man1 ] || mkdir -m 0755 -p ${MANDIR}/man1
    51 install -m 0644 ${INSTALL_OPTS} man1/vmm.1 ${MANDIR}/man1
    51 install -m 0644 ${INSTALL_OPTS} man1/vmm.1 ${MANDIR}/man1
    52 
    52 
    53 [ -d ${MANDIR}/man5 ] || mkdir -m 0755 -p ${MANDIR}/man5
    53 [ -d ${MANDIR}/man5 ] || mkdir -m 0755 -p ${MANDIR}/man5
    54 install -m 0644 ${INSTALL_OPTS} man5/vmm.cfg.5 ${MANDIR}/man5
    54 install -m 0644 ${INSTALL_OPTS} man5/vmm.cfg.5 ${MANDIR}/man5
    55 
       
    56 for l in $(find . -maxdepth 1 -mindepth 1 -type d \! -name man\?)
       
    57 do
       
    58     for s in man1 man5; do
       
    59         [ -d ${MANDIR}/${l}/${s} ] || mkdir -m 0755 -p ${MANDIR}/${l}/${s}
       
    60     done
       
    61     if [ -f ${l}/man1/vmm.1 ]; then
       
    62         install -m 0644 ${INSTALL_OPTS} ${l}/man1/vmm.1 ${MANDIR}/${l}/man1
       
    63     fi
       
    64     if [ -f ${l}/man5/vmm.cfg.5 ]; then
       
    65         install -m 0644 ${INSTALL_OPTS} ${l}/man5/vmm.cfg.5 ${MANDIR}/${l}/man5
       
    66     fi
       
    67 done
       
    68 cd - >/dev/null
    55 cd - >/dev/null
    69 
    56 
    70 [ -d ${DOC_DIR} ] || mkdir -m 0755 -p ${DOC_DIR}
    57 [ -d ${DOC_DIR} ] || mkdir -m 0755 -p ${DOC_DIR}
    71 for DOC in ${DOCS}; do
    58 for DOC in ${DOCS}; do
    72     install -m 0644 ${INSTALL_OPTS} ${DOC} ${DOC_DIR}
    59     install -m 0644 ${INSTALL_OPTS} ${DOC} ${DOC_DIR}