| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function help { |
| |
| local ACTIONNAM='' |
| local ACTIONVAL='' |
| |
| |
| |
| |
| FLAG_SEARCH="" |
| |
| |
| |
| MANUAL_TLDIR="$(cli_getRepoTLDir)/Manuals/Repository" |
| |
| |
| MANUAL_NAME=$(cli_getRepoName "repository" -f) |
| |
| |
| MANUAL_EXTENSION='texinfo' |
| |
| |
| MANUAL_LANG=$(cli_getCurrentLocale) |
| |
| |
| |
| MANUAL_BASEDIR="${MANUAL_TLDIR}/${MANUAL_LANG}" |
| |
| |
| |
| |
| MANUAL_BASEFILE="${MANUAL_BASEDIR}/${MANUAL_NAME}" |
| |
| |
| |
| MANUAL_CHAPTER_NAME=$(cli_getRepoName "Directories" -d) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| MANUAL_CHAPTER_DIR=${MANUAL_BASEDIR}/${MANUAL_CHAPTER_NAME} |
| |
| |
| MANUAL_TEMPLATE=${FUNCDIR}/${FUNCDIRNAM}/Templates/${MANUAL_LANG} |
| |
| |
| |
| if [[ ! -d $MANUAL_TEMPLATE ]];then |
| MANUAL_TEMPLATE=${FUNCDIR}/${FUNCDIRNAM}/Templates/en_US |
| fi |
| |
| |
| ${FUNCNAM}_createStructure |
| |
| |
| ${FUNCNAM}_getOptions |
| |
| |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| |
| |
| cli_syncroRepoChanges ${MANUAL_CHAPTER_DIR} |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| if [[ $ACTIONNAM =~ "${FUNCNAM}_(copy|rename|delete)Entry" ]];then |
| |
| |
| |
| ${ACTIONNAM} $@ |
| |
| elif [[ $ACTIONNAM =~ "${FUNCNAM}_(search(Index|Node)|updateOutputFiles)" ]];then |
| |
| |
| |
| $ACTIONNAM $@ |
| |
| |
| |
| |
| exit |
| |
| else |
| |
| |
| for ACTIONVAL in $@;do |
| |
| |
| MANUAL_ENTRY=$(${FUNCNAM}_getEntry $ACTIONVAL) |
| |
| |
| |
| $ACTIONNAM |
| |
| done |
| |
| fi |
| |
| |
| |
| |
| |
| cli_commitRepoChanges ${MANUAL_CHAPTER_DIR} |
| |
| |
| ${FUNCNAM}_updateOutputFiles |
| |
| } |