| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function help_deleteEntry { |
| |
| |
| cli_printMessage '-' 'AsSeparatorLine' |
| |
| local ENTRY_SRC=${ENTRY} |
| local ENTRIES='' |
| local ENTRY='' |
| local ENTRY_DEP='' |
| |
| |
| |
| ENTRIES=${ENTRY_SRC} |
| |
| |
| |
| |
| if [[ -d ${ENTRY_DIR}/${ENTRY_FILE} ]];then |
| |
| |
| ENTRIES="${ENTRIES} $(cli_getFilesList "${ENTRY_DIR}/${ENTRY_FILE}" ".*\.texi")" |
| |
| |
| |
| for ENTRY in ${ENTRIES};do |
| ENTRY_DEP=$(echo $ENTRY | sed -r "s/\.texi$//") |
| if [[ -d $ENTRY_DEP ]];then |
| ENTRIES="${ENTRIES} ${ENTRY_DEP}" |
| fi |
| done |
| |
| fi |
| |
| |
| ENTRIES=$(echo ${ENTRIES} | tr ' ' "\n" | sort -r | uniq) |
| |
| |
| cli_printActionPreamble "$ENTRIES" 'doDelete' 'AsResponseLine' |
| |
| |
| |
| |
| svn del ${ENTRIES} --quiet |
| |
| |
| |
| if [[ $? -ne 0 ]];then |
| cli_printMessage "${FUNCDIRNAM}" 'AsToKnowMoreLine' |
| fi |
| |
| |
| cli_printMessage '-' 'AsSeparatorLine' |
| |
| |
| cli_printMessage "Updating menus, nodes and cross-references." 'AsResponseLine' |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| for ENTRY in ${ENTRIES};do |
| |
| |
| |
| help_updateMenu "remove-entry" |
| help_updateNodes |
| |
| |
| |
| help_deleteCrossReferences |
| |
| done |
| |
| |
| help_updateOutputFiles |
| |
| } |