| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function texinfo_getEntry { |
| |
| |
| local MANUAL_ENTRY='' |
| local LOCATION='' |
| local LOCATIONS='' |
| |
| |
| |
| |
| if [[ "$@" != '' ]];then |
| LOCATIONS="$@" |
| else |
| LOCATIONS="$ACTIONVAL" |
| fi |
| |
| for LOCATION in $LOCATIONS;do |
| |
| |
| LOCATION=$(cli_checkRepoDirSource $LOCATION) |
| |
| |
| MANUAL_ENTRY=$(echo $LOCATION | sed -r "s!^${HOME}/artwork/!!") |
| |
| |
| |
| |
| |
| |
| |
| |
| if [[ ${MANUAL_ENTRY} =~ "\.${MANUAL_EXTENSION}$" ]];then |
| MANUAL_ENTRY=$(echo ${MANUAL_ENTRY} | sed "s!${MANUAL_BASEDIR}!!") |
| else |
| MANUAL_ENTRY=$(dirname ${MANUAL_CHAPTER_NAME}/${MANUAL_ENTRY})/$(basename $LOCATION).${MANUAL_EXTENSION} |
| fi |
| |
| |
| |
| MANUAL_ENTRY=${MANUAL_BASEDIR}/${MANUAL_ENTRY} |
| |
| |
| echo ${MANUAL_ENTRY} |
| |
| done |
| |
| } |