| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function texinfo_copyEntryChapter { |
| |
| |
| MANUAL_ENTRY_SRC=${MANUAL_BASEDIR_L10N}/${MANUAL_CHAP[${MANUAL_DOCENTRY_ID}]} |
| |
| |
| MANUAL_ENTRY_DST=${MANUAL_BASEDIR_L10N}/${MANUAL_CHAP[((${MANUAL_DOCENTRY_ID} + 1))]} |
| |
| |
| texinfo_checkEntrySrcDst "${MANUAL_ENTRY_SRC}" "${MANUAL_ENTRY_DST}" |
| |
| |
| |
| |
| |
| |
| local MANUAL_CHAPTER_DIR=$MANUAL_ENTRY_DST |
| local MANUAL_CHAPTER_NAME=${MANUAL_CHAP[((${MANUAL_DOCENTRY_ID} + 1))]} |
| |
| |
| |
| |
| |
| |
| |
| texinfo_createChapter |
| |
| |
| |
| |
| local MANUAL_ENTRIES=$(cli_getFilesList $MANUAL_ENTRY_SRC \ |
| --pattern="^.+\.${MANUAL_EXTENSION}$" | egrep -v '/chapter') |
| |
| for MANUAL_ENTRY in $MANUAL_ENTRIES;do |
| |
| |
| cli_runFnEnvironment vcs --copy $MANUAL_ENTRY $MANUAL_ENTRY_DST |
| |
| |
| |
| texinfo_updateStructureSection "${MANUAL_ENTRY_DST}/$(basename ${MANUAL_ENTRY})" |
| |
| done |
| |
| |
| |
| texinfo_updateChapterMenu |
| texinfo_updateChapterNodes |
| |
| } |