| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function texinfo_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)?\.${FLAG_BACKEND}") |
| |
| |
| |
| |
| |
| 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 |
| |
| |
| ${FLAG_BACKEND}_createChapters |
| |
| |
| ${FLAG_BACKEND}_updateChaptersMenu |
| |
| |
| |
| ${FLAG_BACKEND}_updateChaptersNodes |
| |
| |
| |
| |
| |
| cli_commitRepoChanges ${MANUAL_BASEDIR} |
| |
| } |