
t-tools.0.7.1.source-code.CreateDoc.sh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fact-tools Show documentation
Show all versions of fact-tools Show documentation
The FACT telescope is a Cherenkov telescope on the island of La Palma.
This set of tools is dedicated to read, parse and process raw data produced by the FACT telescope.
The newest version!
#!/bin/bash
outputDir="texdoclet"
outputFileName="docs"
#curdir=${PWD}
#cd `dirname $0`
pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd`
popd > /dev/null
echo "-----script dir: $SCRIPTPATH"
outputDir="$SCRIPTPATH/$outputDir"
mkdir $outputDir
echo "----starting script-----"
echo "removing stuff in outputfolder: $outputDir/$outputFileName.aux "
rm "$outputDir/$outputFileName.aux"
rm "$outputDir/$outputFileName.tex"
docletpath=$1
if [ -z "$VAR" ]
then
echo "No argument to texdoclet given. "
docletpath="$SCRIPTPATH/TeXDoclet.jar"
fi
echo "----looking for TeXDoclet.jar in path: $SCRIPTPATH "
sourcedir="$SCRIPTPATH/../../../src/main/java"
echo "---- sourcepath is $sourcedir"
if [ -f "$docletpath" ]
then
javadoc -docletpath "$SCRIPTPATH/TeXDoclet.jar" \
-doclet org.stfm.texdoclet.TeXDoclet \
-hyperref \
-docclass article \
-output "$outputDir/$outputFileName.tex" \
-title "Fact-Tools Documentation" \
-subtitle "Automatisch generierte Fact-Tools Dokumentation" \
-author "Christian Bockermann \and Kai Bruegge" \
-sourcepath "$sourcedir" \
-subpackages fact.io fact.utils fact fact.statistics fact.filter fact.features \
-public \
-noinherited \
-version \
-nosummaries \
-tree \
-quiet \
-texsetup "$SCRIPTPATH/abstract.tex" \
-texintro "$SCRIPTPATH/intro.tex" \
else
echo "doclet not found. aborting"
exit 1
fi
if [ -f "$outputDir/$outputFileName.tex" ]
then
echo ".tex file exists. creating pdf"
cd $outputDir
pdflatex -shell-escape -interaction=nonstopmode $outputFileName.tex
pdflatex -shell-escape -interaction=nonstopmode $outputFileName.tex
echo " "
echo " ------------------------------------------- "
echo "Created $outputFileName.tex and $outputFileName.pdf in the $outputDir Folder."
echo "Used pdflatex for compilation."
else
echo "xxxxx no .tex file written javadoc command probably failed to produce output"
fi
© 2015 - 2025 Weber Informatics LLC | Privacy Policy