| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function help_createStructure { |
| |
| |
| |
| |
| if [[ -d $MANUAL_BASEDIR ]];then |
| return |
| fi |
| |
| |
| cli_printMessage "-" --as-separator-line |
| cli_printMessage "`gettext "Creating manual structure."`" |
| |
| |
| |
| svn mkdir ${MANUAL_BASEDIR} --quiet |
| |
| |
| local FILE='' |
| local FILES=$(cli_getFilesList "${MANUAL_TEMPLATE}" \ |
| --maxdepth='1' \ |
| --pattern="repository(-menu|-nodes|-index)?\.${MANUAL_EXTENSION}") |
| |
| |
| |
| |
| |
| for FILE in $FILES;do |
| if [[ ! -f ${MANUAL_BASEDIR}/$(basename ${FILE}) ]];then |
| cli_checkFiles ${FILE} -wn |
| svn cp ${FILE} ${MANUAL_BASEDIR}/$(basename ${FILE}) --quiet |
| cli_replaceTMarkers ${MANUAL_BASEDIR}/$(basename ${FILE}) |
| fi |
| done |
| |
| |
| ${FUNCNAM}_createChapters |
| |
| |
| ${FUNCNAM}_updateChaptersMenu |
| |
| |
| |
| ${FUNCNAM}_updateChaptersNodes |
| |
| |
| |
| |
| |
| cli_commitRepoChanges ${MANUAL_BASEDIR} |
| |
| } |