echo"---> ! Could not find doxygen tex source $REFMAN_TEXFILE. Leaving tarball creation."
exit 1;
fi
#to resolve all references, pdf and bibtex have to be run more than once. With 4 runs, we should get everything right.
PDFRUNS=4
echo"---> Build Doxygen PDF reference"
if["$DO_CREATE_LATEXDOC"=true];then
cd"$MYTMPDIR_DOXY_BUILD/latex"
for((i=1; i<=$PDFRUNS; i++));do
echo"----> LaTeX Run ($i/$PDFRUNS)"
redirect_cmd pdflatex refman.tex
redirect_cmd bibtex refman
done
fi
cd"$REMEMBER_CUR_DIR"
echo"--> Calling rsync to temporary folder 1/2 ($MYTMPDIR)"
#this is the rsync, to the folder from which the tarball will be created later. Exclude everything, that should not be in the tarball. Also exclude things, that are generated somewhere else, like examples.
redirect_cmd rsync \
--exclude".git"\
--exclude".git"\
--exclude".gitignore"\
--exclude".gitignore"\
--exclude".gitattributes"\
--exclude"build*/"\
--exclude"build*/"\
--exclude"scripts/*.tar.gz"\
--exclude"scripts/*.tar.gz"\
--exclude"scripts/cpplint.py"\
--exclude"scripts/cpplint.py"\
...
@@ -145,35 +236,128 @@ rsync \
...
@@ -145,35 +236,128 @@ rsync \
--exclude"doc/reference/*.in"\
--exclude"doc/reference/*.in"\
--exclude"doc/reference/header.html"\
--exclude"doc/reference/header.html"\
--exclude"doc/reference/*.css"\
--exclude"doc/reference/*.css"\
--exclude"doc/examples"\
--exclude"doc/examples/insert_snippets.py"\
--exclude"doc/examples/insert_snippets.py"\
--exclude".travis.yml"\
--exclude".travis.yml"\
--archive--recursive${d}$MYTMPDIR/${n}
--archive--recursive${d}$MYTMPDIR/${n}
echo"Replace version number in README"
echo"--> Replace version number in README"
README_FILE="$MYTMPDIR/${n}/README.md"
README_FILE="$MYTMPDIR/${n}/README.md"
#replace version number in readme
if[-f$README_FILE];then
if[-f$README_FILE];then
sed -i"s/\[VERSION_NUMBER_TEMPLATE\]/$VERSION_NUMBER/g"$README_FILE
sed -i"s/\[VERSION_NUMBER_TEMPLATE\]/$VERSION_NUMBER/g"$README_FILE
fi
fi
echo"Checking line endings"
echo"--> Calling rsync to temporary folder 2/2 ($MYTMPDIR_BUILD)"
#doing a rsync to another temporary folder, which will be used to build things, like e.g. the tutorial pdf.