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:
parent
081c009b9e
commit
d1db256dd6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user