| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function manual_updateChaptersFiles { |
| |
| |
| local CHAPTERBODY="\ |
| @node $CHAPTERNAME |
| @chapter $CHAPTERNAME |
| @cindex $(echo $CHAPTERNAME | tr '[[:upper:]]' '[[:lower:]]') |
| @include $CHAPTERNAME/${MANUALS_FILE[7]} |
| @include $CHAPTERNAME/${MANUALS_FILE[8]} |
| @include $CHAPTERNAME/${MANUALS_FILE[9]}" |
| |
| |
| CHAPTERBODY=$(echo "$CHAPTERBODY" | sed -r 's!^[[:space:]]+@!@!') |
| |
| |
| if [[ ! -d $ENTRYCHAPTER ]];then |
| mkdir $ENTRYCHAPTER |
| fi |
| |
| |
| |
| |
| echo "$CHAPTERBODY" > $ENTRYCHAPTER/${MANUALS_FILE[6]} |
| echo "" > $ENTRYCHAPTER/${MANUALS_FILE[8]} |
| echo "" > $ENTRYCHAPTER/${MANUALS_FILE[9]} |
| |
| |
| cp ${MANUALS_DIR[6]}/repository-chapter-intro.texi $ENTRYCHAPTER/${MANUALS_FILE[7]} |
| sed -r -i \ |
| -e "s!=GOALS=!`gettext "Goals"`!g" \ |
| -e "s!=USAGE=!`gettext "Usage"`!g" \ |
| -e "s!=CONCEPTS=!`gettext "Concepts"`!g" \ |
| -e "s!=DIRECTORIES=!`gettext "Directories"`!g" \ |
| $ENTRYCHAPTER/${MANUALS_FILE[7]} |
| } |