| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function texinfo_deleteEntryChapter { |
| |
| |
| |
| cli_checkFiles "${MANUAL_CHAPTER_DIR}" -d |
| cli_checkFiles "${MANUAL_CHAPTER_DIR}-menu.${MANUAL_EXTENSION}" -f |
| cli_checkFiles "${MANUAL_CHAPTER_DIR}-nodes.${MANUAL_EXTENSION}" -f |
| cli_checkFiles "${MANUAL_CHAPTER_DIR}.${MANUAL_EXTENSION}" -f |
| |
| |
| local SPECIAL_CHAPTERS='/(Licenses|Index)$' |
| |
| |
| |
| if [[ $MANUAL_CHAPTER_DIR =~ $SPECIAL_CHAPTERS ]];then |
| cli_printMessage "`gettext "The chapter specified cannot be removed."`" --as-error-line |
| fi |
| |
| |
| |
| |
| |
| local MANUAL_ENTRIES=$(cli_getFilesList $MANUAL_CHAPTER_DIR \ |
| --pattern="^/.+\.${MANUAL_EXTENSION}$") |
| |
| |
| |
| cli_runFnEnvironment vcs --delete ${MANUAL_CHAPTER_DIR} |
| cli_runFnEnvironment vcs --delete ${MANUAL_CHAPTER_DIR}-menu.${MANUAL_EXTENSION} |
| cli_runFnEnvironment vcs --delete ${MANUAL_CHAPTER_DIR}-nodes.${MANUAL_EXTENSION} |
| cli_runFnEnvironment vcs --delete ${MANUAL_CHAPTER_DIR}.${MANUAL_EXTENSION} |
| |
| |
| texinfo_updateChapterMenu --delete-entry |
| texinfo_updateChapterNodes |
| |
| |
| |
| |
| |
| |
| |
| |
| for MANUAL_ENTRY in $MANUAL_ENTRIES;do |
| texinfo_deleteCrossReferences ${MANUAL_ENTRY} |
| done |
| |
| } |