Commit bf78262e authored by Erwan Demairy's avatar Erwan Demairy
Browse files

Forgotten files.

parent 8b43d0cc
Pipeline #112512 passed with stages
in 1 minute and 18 seconds
#!/bin/bash -xv
origin_url=`git config --get remote.origin.url`
tags=`git tag`
root=`pwd`
mkdir doc
git clone $origin_url local_clone
export PROJECT_NAME=dtkCore
for tag in $tags; do
export PROJECT_NUMBER=${tag}
export INPUT_DIR=src
python ./setvars.py Doxyfile.in local_clone/Doxyfile
pushd .
cd local_clone
git checkout $tag
doxygen
rm -fr ${root}/doc/${tag}
popd
mv local_clone/out/html ${root}/doc/${tag}
mv local_clone/dtkVisualization.tag ${root}/doc/${tag}
done
# Create the documentation for the latest version in develop
export PROJECT_NUMBER="latest_version_in_develop"
export INPUT_DIR=src
python ./setvars.py Doxyfile.in local_clone/Doxyfile
pushd .
cd local_clone
git checkout develop
doxygen
rm -fr ${root}/doc/latest
popd
mv local_clone/out/html ${root}/doc/latest
mv local_clone/dtkVisualization.tag ${root}/doc/latest
cat > doc/index.html << EOF
<!DOCTYPE html>
<html>
<body>
<h2>List of tagged versions</h2>
<ul>
EOF
for tag in $tags; do
cat >> doc/index.html << EOF
<li><a href="./${tag}/index.html">${tag}</a></li>
EOF
done
cat >> doc/index.html << EOF
<li><a href="./latest/index.html">latest</a></li>
</ul>
</body>
</html>
EOF
import os.path
import os
import sys
# Path
input_file = sys.argv[1]
input=open(input_file, "r")
assert( input.mode == 'r' )
input_content = input.read()
input.close()
# Expand the environment variables
# with their corresponding
# value in the given path
output_content = os.path.expandvars(input_content)
output_file = sys.argv[2]
output = open(output_file, "w")
assert( output.mode == 'w' )
output.write( output_content )
output.close()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment