| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function manual_updateNodes { |
| |
| |
| local NODES=$(cat $ENTRYCHAPTER/${MANUALS_FILE[8]} \ |
| | sed -r 's!^\* !!' | sed -r 's!:{1,2}.*$!!g' \ |
| | egrep -v '^@(end )?menu$' | sed -r 's! !:!g' | sort | uniq) |
| |
| |
| for NODE in $NODES;do |
| |
| NODE=$(echo $NODE | sed -r 's!:! !g') |
| SECT=$(echo $NODE | sed -r 's! !/!g') |
| INCL=$(echo $NODE | sed -r 's! !/!g').texi |
| CIND=$(echo $NODE) |
| |
| |
| if [[ ! -d ${MANUALS_DIR[2]}/$(dirname $INCL) ]];then |
| mkdir -p ${MANUALS_DIR[2]}/$(dirname $INCL) |
| fi |
| |
| |
| if [[ ! -f ${MANUALS_DIR[2]}/$INCL ]];then |
| |
| cp ${MANUALS_FILE[10]} ${MANUALS_DIR[2]}/$INCL |
| |
| |
| sed -r -i \ |
| -e "s!=GOALS=!`gettext "Goals"`!g" \ |
| -e "s!=USAGE=!`gettext "Usage"`!g" \ |
| -e "s!=DESCRIPTION=!`gettext "Description"`!g" \ |
| -e "s!=SEEALSO=!`gettext "See also"`!g" \ |
| ${MANUALS_DIR[2]}/$INCL |
| |
| fi |
| |
| |
| echo "@node $NODE" |
| echo "@section $SECT" |
| echo "@cindex $CIND" |
| echo "@include $INCL" |
| echo "" |
| |
| |
| done > $ENTRYCHAPTER/${MANUALS_FILE[9]} |
| |
| } |
| |