nimg.neuroinf.jp/etc/copy-nimgdocs.sh
2022-06-20 17:51:03 +09:00

19 lines
972 B
Bash

#!/bin/bash
XOOPS_ROOT_PATH=/data/www/nimg.neuroinf.jp/html
DATADIR=$(dirname $0)/data
SRCDIR=${XOOPS_ROOT_PATH}/modules/nimgdocs
DESTDIR=${DATADIR}/public/modules/nimgdocs
rsync -av --delete ${SRCDIR}/tutorials/movie/ ${DESTDIR}/tutorials/movie/
rsync -av ${SRCDIR}/tutorials/slide.html ${DESTDIR}/tutorials/
rsync -av --delete ${SRCDIR}/tutorials/slide/ ${DESTDIR}/tutorials/slide/
rsync -av ${SRCDIR}/tutorials/slide2.html ${DESTDIR}/tutorials/
rsync -av --delete ${SRCDIR}/tutorials/slide2/ ${DESTDIR}/tutorials/slide2/
rsync -av --delete ${SRCDIR}/docs/nimgcenter_document/ ${DESTDIR}/docs/nimgcenter_document/
rsync -av --delete ${SRCDIR}/docs/nimgsearch_document/ ${DESTDIR}/docs/nimgsearch_document/
rsync -av --delete ${SRCDIR}/docs/pdf/ ${DESTDIR}/docs/pdf/
rsync -av --delete ${SRCDIR}/docs/poster/ ${DESTDIR}/docs/poster/
rsync -av --delete ${SRCDIR}/docs/viewlet/ ${DESTDIR}/docs/viewlet/
rsync -av --delete ${SRCDIR}/docs/winword/ ${DESTDIR}/docs/winword/