| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function texinfo_deleteEntryChapter { |
| |
| |
| cli_printMessage "$MANUAL_CHAPTER_DIR" --as-deleting-line |
| |
| |
| |
| cli_checkFiles "$MANUAL_CHAPTER_DIR" |
| |
| |
| 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}" \ |
| | egrep -v '/chapter') |
| |
| |
| svn revert ${MANUAL_CHAPTER_DIR} --quiet --recursive |
| |
| |
| |
| svn del ${MANUAL_CHAPTER_DIR} --quiet |
| |
| |
| texinfo_updateChapterMenu --delete-entry |
| texinfo_updateChapterNodes |
| |
| |
| |
| |
| |
| |
| |
| |
| for MANUAL_ENTRY in $MANUAL_ENTRIES;do |
| texinfo_deleteCrossReferences ${MANUAL_ENTRY} |
| done |
| |
| } |