doxy: helper script for converting
authordberzano <dario.berzano@cern.ch>
Fri, 9 Jan 2015 14:52:39 +0000 (15:52 +0100)
committerdberzano <dario.berzano@cern.ch>
Fri, 9 Jan 2015 15:01:10 +0000 (16:01 +0100)
doxygen/.gitignore [new file with mode: 0644]
doxygen/debug/run.sh [new file with mode: 0755]

diff --git a/doxygen/.gitignore b/doxygen/.gitignore
new file mode 100644 (file)
index 0000000..519b3f4
--- /dev/null
@@ -0,0 +1 @@
+/debug/includes.txt
diff --git a/doxygen/debug/run.sh b/doxygen/debug/run.sh
new file mode 100755 (executable)
index 0000000..ceb1c7e
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+cd "${ALICE_ROOT}"/../src/
+
+# find TPC/ -maxdepth 1 -name '*.h' -or -name '*.cxx'
+
+#Files=$( find TPC/ -name '*.C' -or -name '*.h' -or -name '*.cxx' )
+
+# Files=(
+#   'TPC/LandauTest.C'
+#   #'TPC/Attic/AliTPCCalibTCF.h'
+# )
+
+# Files=(
+#   'EVE/EveDet/AliEveEMCALSModuleData.h'
+# )
+
+Files=$( find TPC/ -maxdepth 1 -name '*.h' -or -name '*.cxx' )
+
+while [[ $# -gt 0 ]] ; do
+  case "$1" in
+    -r) RestoreOnly=1 ;;
+    -x) DoxygenOnly=1 ;;
+    -d) Debug='--debug=debug' ;;
+    -o) Stdout='-o' ;;
+  esac
+  shift 1
+done
+
+cd "${ALICE_ROOT}"/../src/doxygen
+
+for F in ${Files[@]} ; do
+  F="${ALICE_ROOT}/../src/${F}"
+  [[ $DoxygenOnly != 1 ]] && git checkout "$F"
+  [[ $RestoreOnly != 1 ]] && ./thtml2doxy.py $Stdout $Debug $( cat debug/includes.txt ) "$F"
+done