| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function manual_updateChaptersFiles { |
| |
| |
| local CHAPTERBODY="\ |
| @node $MANUAL_CHA_NAME |
| @chapter $MANUAL_CHA_NAME |
| @cindex $(echo $MANUAL_CHA_NAME | tr '[[:upper:]]' '[[:lower:]]') |
| @include $MANUAL_CHA_NAME/chapter-intro.texi |
| @include $MANUAL_CHA_NAME/chapter-menu.texi |
| @include $MANUAL_CHA_NAME/chapter-nodes.texi" |
| |
| |
| CHAPTERBODY=$(echo "$CHAPTERBODY" | sed -r 's!^[[:space:]]+@!@!') |
| |
| |
| if [[ ! -d $MANUAL_DIR_CHAPTER ]];then |
| mkdir $MANUAL_DIR_CHAPTER |
| fi |
| |
| |
| |
| |
| echo "$CHAPTERBODY" > $MANUAL_DIR_CHAPTER/chapter.texi |
| echo "" > $MANUAL_DIR_CHAPTER/chapter-menu.texi |
| echo "" > $MANUAL_DIR_CHAPTER/chapter-nodes.texi |
| |
| |
| cp ${FUNCCONFIG}/manual-cha-intro.texi $MANUAL_DIR_CHAPTER/chapter-intro.texi |
| |
| } |