@@ -18,8 +18,10 @@ if [ ! "$TRAVIS" ]; then #not on travis, try a sane deploy of current branch's d
1818 cd gh-pages
1919 [ -e " $BRANCH " ] && rm -r " $BRANCH " # wipe out old docs if they exist
2020 mkdir " $BRANCH "
21- for f in ../documentation/* .* ; do # add branch info to header and clean line endings
22- sed ' /[^#]robo_top_of_doc/ s;jsonfortran</a>;jsonfortran ' " $BRANCH " ' </a>;' $f | sed ' s/ *$//' > " $BRANCH /${f##*/ } "
21+ mkdir " $BRANCH /tests"
22+ FILES=$( find ../documentation -name ' *.*' ) # get all the files (including in subdirectories)
23+ for f in $FILES ; do # add branch info to header and clean line endings
24+ sed ' /[^#]robo_top_of_doc/ s;jsonfortran</a>;jsonfortran ' " $BRANCH " ' </a>;' $f | sed ' s/ *$//' > " $BRANCH /${f##* documentation/ } "
2325 done
2426 git add " $BRANCH "
2527 git commit -m " Development documentation for $BRANCH updated for commit $REVISION "
@@ -39,8 +41,10 @@ else #running under travis
3941 cd gh-pages
4042 [ -e master ] && rm -r master # wipe out docs if they exist
4143 mkdir master
42- for f in ../documentation/* .* ; do # add branch info to header and clean line endings
43- sed ' /[^#]robo_top_of_doc/ s;jsonfortran</a>;jsonfortran master</a>;' $f | sed ' s/ *$//' > master/${f##*/ }
44+ mkdir master/tests
45+ FILES=$( find ../documentation -name ' *.*' ) # get all the files (including in subdirectories)
46+ for f in $FILES ; do # add branch info to header and clean line endings
47+ sed ' /[^#]robo_top_of_doc/ s;jsonfortran</a>;jsonfortran master</a>;' $f | sed ' s/ *$//' > master/${f##* documentation/ }
4448 done
4549 git add master
4650 git commit -m " Development documentation updated by travis job $TRAVIS_JOB_NUMBER for commits $TRAVIS_COMMIT_RANGE "
@@ -52,10 +56,12 @@ else #running under travis
5256 cd gh-pages
5357 [ -e " $TRAVIS_TAG " ] && rm -r " $TRAVIS_TAG " # wipe out existing docs for tag if they exist
5458 mkdir " $TRAVIS_TAG "
59+ mkdir " $TRAVIS_TAG /tests"
5560 # Add an entry in index.html for the new tag, assume none exists
5661 awk ' /<!--Next stable release goes here-->/{print "<a href=\"./' " $TRAVIS_TAG " ' /masterindex.html\" class=\"indexitem\" >' " $TRAVIS_TAG " ' </a>"}1' index.html > index2.html && mv index2.html index.html
57- for f in ../documentation/* .* ; do # add tag info to headers and clean line endings
58- sed ' /[^#]robo_top_of_doc/ s;jsonfortran</a>;jsonfortran ' " $TRAVIS_TAG " ' </a>;' $f | sed ' s/ *$//' > " $TRAVIS_TAG /${f##*/ } "
62+ FILES=$( find ../documentation -name ' *.*' ) # get all the files (including in subdirectories)
63+ for f in $FILES ; do # add tag info to headers and clean line endings
64+ sed ' /[^#]robo_top_of_doc/ s;jsonfortran</a>;jsonfortran ' " $TRAVIS_TAG " ' </a>;' $f | sed ' s/ *$//' > " $TRAVIS_TAG /${f##* documentation/ } "
5965 done
6066 git add " $TRAVIS_TAG " index.html # don't forget to add the top level index!
6167 git commit -m " Tag/release documentation updated by travis job $TRAVIS_JOB_NUMBER for tag $TRAVIS_TAG $TRAVIS_COMMIT "
0 commit comments