From b6fafba2cf371433ee80364aa9c8b0461fec759f Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Feb 25 2011 02:16:11 +0000 Subject: Update manual_getActions.sh: - Introduce MANUAL_NAME variable. This variable stores manual's filename in lowercase (no path, just the name). - Use cli_getFilesList MANUAL_DIR and MANUAL_NAME to build the absolute path to manual's base file. Using cli_getFilesList we use find to find out the manual base file which let us use intermediate directory structures inbetween (e.g., to ilustrate the release information manuals are built for.) and also keep the name relation between manual directory and manual base filename. trunk/Manuals/Rnotes/5.5/rnotes.texi |----| |-| |----| | | |manual base name | |intermediate directory structure. |manual directory name. - Use cli_printActionPreamble to force MANUAL_BASEFILE verification. --- diff --git a/Scripts/Bash/centos-art/Functions/Manual/manual_getActions.sh b/Scripts/Bash/centos-art/Functions/Manual/manual_getActions.sh index 5b7f2f3..dd12387 100755 --- a/Scripts/Bash/centos-art/Functions/Manual/manual_getActions.sh +++ b/Scripts/Bash/centos-art/Functions/Manual/manual_getActions.sh @@ -101,6 +101,10 @@ function manual_getActions { # specific documentation manual we are working with is stored in. MANUAL_DIR=$(echo $ENTRY | cut -d / -f-7) + # Define file name for documentation manual. This is the file used + # to initiate the structure of documentation manual. + MANUAL_NAME=$(cli_getRepoName ${MANUAL_DIR} 'f') + # Define directory to store documentation entries. At this point, # we need to take a desition about documentation design, in order # to answer the question: How do we assign chapters, sections and @@ -122,8 +126,10 @@ function manual_getActions { # Define base name for documentation manual files. This is the # main file name used to build texinfo related files (.info, .pdf, # .xml, etc.). - MANUAL_BASEFILE=$(echo $ENTRY | cut -d / -f-7) - MANUAL_BASEFILE=${MANUAL_BASEFILE}/$(cli_getRepoName "${MANUAL_BASEFILE}" 'f') + MANUAL_BASEFILE=$(cli_getFilesList "${MANUAL_DIR}" ".+/${MANUAL_NAME}\.texi") + + # Set action preable. + cli_printActionPreamble "$MANUAL_BASEFILE" # Syncronize changes between the working copy and the central # repository to bring down changes.