From 33f9409b1707e02a007faa6c4c60318e997c76e9 Mon Sep 17 00:00:00 2001 From: Flammie A Pirinen Date: Wed, 3 Apr 2024 14:44:31 +0200 Subject: [PATCH] changing upper level dir resets the subtree fixes #47 --- am-shared/docs-dir-include.am | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/am-shared/docs-dir-include.am b/am-shared/docs-dir-include.am index 34d969ab..f246ef41 100644 --- a/am-shared/docs-dir-include.am +++ b/am-shared/docs-dir-include.am @@ -186,24 +186,32 @@ $(LINKS): if test "x$$d1" != "x$$oldd1" ; then \ echo "* \`$$d1/\`" ;\ oldd1=$$d1 ;\ + oldd2="";\ + oldd3="";\ + oldd4="";\ fi ; \ if test "x$$d2" = x ; then \ echo " * [$$docname]($$html) ([src]($(REPOURL)/$$doc))" ;\ elif test "x$$d2" != "x$$oldd2" ; then \ echo " * \`$$d2/\`" ;\ oldd2=$$d2 ;\ + oldd3="";\ + oldd4="";\ + oldd5="";\ fi ; \ if test "x$$d3" = x -a "x$$d2" != x; then \ echo " * [$$docname]($$html) ([src]($(REPOURL)/$$doc))" ;\ elif test "x$$d3" != "x$$oldd3" ; then \ echo " * \`$$d3/\`" ;\ oldd3=$$d3 ;\ + oldd4="";\ fi ; \ if test "x$$d4" = x -a "x$$d3" != x ; then \ echo " * [$$docname]($$html) ([src]($(REPOURL)/$$doc))" ;\ elif test "x$$d4" != "x$$oldd4" ; then \ echo " * \`$$d4/\`" ;\ oldd4=$$d4 ;\ + oldd5="";\ fi ; \ if test "x$$d5" = x -a "x$$d4" != x ; then \ echo " * [$$docname]($$html) ([src]($(REPOURL)/$$doc))" ;\