Commit c1cb0025 by Dave Syer

Use subdirectory for gh pages docs

parent 89ebf1fa
...@@ -15,6 +15,8 @@ fi ...@@ -15,6 +15,8 @@ fi
# Find name of current branch # Find name of current branch
################################################################### ###################################################################
branch=`git rev-parse --abbrev-ref HEAD` branch=`git rev-parse --abbrev-ref HEAD`
target=.
if [ "$branch" != "master" ]; then target=./$branch; mkdir -p $target; fi
# Stash any outstanding changes # Stash any outstanding changes
################################################################### ###################################################################
...@@ -30,8 +32,8 @@ for f in docs/target/generated-docs/*; do ...@@ -30,8 +32,8 @@ for f in docs/target/generated-docs/*; do
file=${f#docs/target/generated-docs/*} file=${f#docs/target/generated-docs/*}
if ! git ls-files -i -o --exclude-standard --directory | grep -q ^$file$; then if ! git ls-files -i -o --exclude-standard --directory | grep -q ^$file$; then
# Not ignored... # Not ignored...
cp -rf $f . cp -rf $f $target
git add -A $file git add -A $target/$file
fi fi
done done
......
Markdown is supported
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