| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function help_renameCrossReferences { |
| |
| local NODE='' |
| local COUNT=1 |
| local ENTRIES='' |
| local NODE_SRC='' |
| local NODE_DST='' |
| |
| |
| NODE_SRC=$(echo "$ENTRY" \ |
| | cut -d / -f7- \ |
| | tr '/' ' ' \ |
| | sed -r \ |
| -e "s/(chapter-intro\.texi|\.texi)$//") |
| |
| |
| NODE_DST=$(echo "$ENTRY_DST" \ |
| | cut -d / -f7- \ |
| | tr '/' ' ' \ |
| | sed -r \ |
| -e "s/(chapter-intro\.texi|\.texi)$//") |
| |
| |
| ENTRIES=$(cli_getFilesList ${MANUAL_BASEDIR} --pattern='.*\.texi') |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| sed -r -i ":a;N;s!${NODE_SRC}!${NODE_DST}!g;ba" ${ENTRIES} |
| |
| |
| |
| |
| |
| help_restoreCrossReferences "${ENTRY_DST}" |
| |
| } |