[Dart-dev] DART/branches Revision: 12973
dart at ucar.edu
dart at ucar.edu
Wed Feb 6 14:16:44 MST 2019
nancy at ucar.edu
2019-02-06 14:16:44 -0700 (Wed, 06 Feb 2019)
216
add a little bit of logic to try to figure out how
deep in the dart source hierarchy we are by looking
for the CHANGELOG file in the top level directory.
this should enable the gendocs program to run in
more cases.
Modified: DART/branches/rma_trunk/documentation/doxygen/gendocs
===================================================================
--- DART/branches/rma_trunk/documentation/doxygen/gendocs 2019-02-06 21:15:53 UTC (rev 12972)
+++ DART/branches/rma_trunk/documentation/doxygen/gendocs 2019-02-06 21:16:44 UTC (rev 12973)
@@ -22,10 +22,27 @@
template=doxygen-config-template
fi
+# this assumes we are running from some work directory.
+# if you are building from some other named dir, change
+# 'work' to that dir name in the line below.
model=`pwd | sed -e 's;/work;;' -e 's;^.*/;;' `
umodel=`echo $model | tr '[a-z]' '[A-Z]' `
-toppath=`cd ../../../; pwd`
+# figure out how far down we are in the directory hierarchy.
+if [ -f ../../../CHANGELOG ]; then
+ toppath=`cd ../../../; pwd`
+elif [ -f ../../../../CHANGELOG ]; then
+ toppath=`cd ../../../../; pwd`
+elif [ -f ../../CHANGELOG ]; then
+ toppath=`cd ../../; pwd`
+elif [ -f ../../../../../CHANGELOG ]; then
+ toppath=`cd ../../../../../; pwd`
+elle
+ echo cannot find the top level DART directory
+ echo based on the current working directory.
+ exit -1
+fi
+
destdir=$toppath/documentation/doxygen/$model
echo Generating documentation for all executables in the current directory
More information about the Dart-dev
mailing list