From d1db256dd6c286c4495656b1180bb377eeb064ad Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 16 May 2015 22:25:21 +0200 Subject: [PATCH] Fix kilo publishing Fix a problem in publishdocs.sh: The copying of draft to kilo copied the files to publish-docs/kilo/draft instead of to publish-docs/kilo/ since the directory existed already. Make this robust, always create the directory and copy the content of it. Also remove draft-index.html, we don't need it in the kilo directory. Change-Id: I63e633dd4ecd4fd6ada74ca312d8cb6cb6a8fc28 --- tools/publishdocs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/publishdocs.sh b/tools/publishdocs.sh index 47fbf37857..4ea1d2cc61 100755 --- a/tools/publishdocs.sh +++ b/tools/publishdocs.sh @@ -27,7 +27,10 @@ function copy_to_branch { if [ -e publish-docs/draft ] ; then # Copy files over - cp -a publish-docs/draft publish-docs/$BRANCH + mkdir -p publish-docs/$BRANCH + cp -a publish-docs/draft/* publish-docs/$BRANCH/ + # We don't need this file + rm -f publish-docs/$BRANCH/draft-index.html for f in $(find publish-docs/$BRANCH -name "atom.xml"); do sed -i -e "s|/draft/|/$BRANCH/|g" $f