@@ -18,8 +18,10 @@ if [ ! "$TRAVIS" ]; then #not on travis, try a sane deploy of current branch's d
18
18
cd gh-pages
19
19
[ -e " $BRANCH " ] && rm -r " $BRANCH " # wipe out old docs if they exist
20
20
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/ } "
23
25
done
24
26
git add " $BRANCH "
25
27
git commit -m " Development documentation for $BRANCH updated for commit $REVISION "
@@ -39,8 +41,10 @@ else #running under travis
39
41
cd gh-pages
40
42
[ -e master ] && rm -r master # wipe out docs if they exist
41
43
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/ }
44
48
done
45
49
git add master
46
50
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
52
56
cd gh-pages
53
57
[ -e " $TRAVIS_TAG " ] && rm -r " $TRAVIS_TAG " # wipe out existing docs for tag if they exist
54
58
mkdir " $TRAVIS_TAG "
59
+ mkdir " $TRAVIS_TAG /tests"
55
60
# Add an entry in index.html for the new tag, assume none exists
56
61
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/ } "
59
65
done
60
66
git add " $TRAVIS_TAG " index.html # don't forget to add the top level index!
61
67
git commit -m " Tag/release documentation updated by travis job $TRAVIS_JOB_NUMBER for tag $TRAVIS_TAG $TRAVIS_COMMIT "
0 commit comments