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