From 661ec682e23133ac8dae47ae8b774794ecfcbea5 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Aug 02 2011 20:26:11 +0000 Subject: Update `render_getDirOutput.sh': - Add `trunk/Manuals/Distro' directory to the list of directories which add specific information to their paths. In this case the distribution manuals add the release number. NOTE: The architecture information isn't used by Distro manuals so far, but it might be added in the future if needed (just as it is done with the `Media' directory inside artistic motifs). --- diff --git a/Scripts/Functions/Render/render_getDirOutput.sh b/Scripts/Functions/Render/render_getDirOutput.sh index b529e68..8796d8f 100755 --- a/Scripts/Functions/Render/render_getDirOutput.sh +++ b/Scripts/Functions/Render/render_getDirOutput.sh @@ -43,15 +43,18 @@ function render_getDirOutput { # Redefine base output directory to introduce specific information # like release number and architecture. This information is # require by directories (e.g., the `Media' directory inside - # themes) whose need this information to be passed explicitly - # at the command-line through the `--releasever' and `--basearch' - # options. Other directories take such information from the path - # they are stored in (e.g., the `Distro/5/Anaconda' directory - # inside themes.). So, we need to differentiate the way - # information like release numbers and architectures are retrived - # in order to build the output path correctly at rendition time. + # themes and the `trunk/Manuals/Distro' directory ) whose need + # this information to be passed explicitly at the command-line + # through the `--releasever' and `--basearch' options. Other + # directories take such information from the path they are stored + # in (e.g., the `Distro/5/Anaconda' directory inside themes.). So, + # we need to differentiate the way information like release + # numbers and architectures are retrived in order to build the + # output path correctly at rendition time. if [[ $OUTPUT =~ "^${MOTIF_DIR}/Media$" ]];then OUTPUT=${OUTPUT}/${FLAG_RELEASEVER}/${FLAG_BASEARCH} + elif [[ $OUTPUT =~ 'trunk/Manuals/Distro$' ]];then + OUTPUT=${OUTPUT}/${FLAG_RELEASEVER} else OUTPUT=${OUTPUT} fi