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
This commit is contained in:
Andreas Jaeger 2015-05-16 22:25:21 +02:00
parent 081c009b9e
commit d1db256dd6

View File

@ -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