From 87235ca581d3ef25d9717d8adde641d05fbea5b5 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 23 2011 02:19:20 +0000 Subject: Update `texinfo_updateSectionNodes.sh': - Don't use the MANUAL_CHAPTER_DIR variable here. Use the `$(dirname ${MANUAL_ENTRY})' construction instead. --- diff --git a/Scripts/Functions/Help/Texinfo/texinfo_updateSectionNodes.sh b/Scripts/Functions/Help/Texinfo/texinfo_updateSectionNodes.sh index a2e6b41..c1d38e5 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_updateSectionNodes.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_updateSectionNodes.sh @@ -28,7 +28,7 @@ function texinfo_updateSectionNodes { # Build list of chapter nodes using entries from chapter menu as # reference. - local NODES=$(cat $MANUAL_CHAPTER_DIR/chapter-menu.${MANUAL_EXTENSION} \ + local NODES=$(cat $(dirname ${MANUAL_ENTRY})/chapter-menu.${MANUAL_EXTENSION} \ | sed -r 's!^\* !!' | sed -r 's!:{1,2}.*$!!g' \ | egrep -v '^@(end )?menu$' | sed -r 's! !:!g') @@ -137,6 +137,6 @@ function texinfo_updateSectionNodes { | sed -r "s!=INCL=!${INCL}!g" # Dump chapter node definition into manual structure. - done > $MANUAL_CHAPTER_DIR/chapter-nodes.${MANUAL_EXTENSION} + done > $(dirname ${MANUAL_ENTRY})/chapter-nodes.${MANUAL_EXTENSION} }