
The Debian tag was added to the build scipt to give a chance to build and test the OpenStack Installation Guide for Debian. Change-Id: Ie09b7d3175e463f3b890d656ba85ab679506a276 Implements: blueprint installguide-liberty-debian
24 lines
787 B
Bash
Executable File
24 lines
787 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
mkdir -p publish-docs
|
|
|
|
title_org=$(grep "title::" doc/install-guide-rst/source/index.rst | \
|
|
awk '{print substr($0, index($0, "::")+3)}')
|
|
|
|
for tag in obs rdo ubuntu debian; do
|
|
GLOSSARY=""
|
|
if [[ ! -e doc/common-rst/glossary.rst ]] ; then
|
|
GLOSSARY="--glossary"
|
|
fi
|
|
title=$(grep -m 1 -A 5 ".. only:: ${tag}" \
|
|
doc/install-guide-rst/source/index.rst | \
|
|
sed -n 4p | sed -e 's/^ *//g')
|
|
sed -i -e "s/\.\. title::.*/.. title:: ${title}/" \
|
|
doc/install-guide-rst/source/index.rst
|
|
tools/build-rst.sh doc/install-guide-rst \
|
|
$GLOSSARY --tag ${tag} --target "draft/install-guide-rst-${tag}"
|
|
done
|
|
|
|
sed -i -e "s/\.\. title::.*/.. title:: ${title_org}/" \
|
|
doc/install-guide-rst/source/index.rst
|