Copy RST files to ha-guide and api-site
Copy glossary.rst and app_support.rst to ha-guide and firstApp. Change-Id: I265d3c7d0203af2ba4f6b0442f65be7a03f0bd2d Depends-On: I7c40ccb80d77e7a6fd763b778945ee0869b7e1c0 Depends-On: If4e11a4f90d580876865348e0d88b92cec4b6659
This commit is contained in:
parent
b932cfeccc
commit
d1f0536476
@ -1,3 +1,4 @@
|
|||||||
|
openstack/api-site
|
||||||
openstack/ha-guide
|
openstack/ha-guide
|
||||||
openstack/operations-guide
|
openstack/operations-guide
|
||||||
openstack/security-doc
|
openstack/security-doc
|
||||||
|
@ -19,8 +19,24 @@ if [ -z "$PROJECT_DIR" ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function copy_rst {
|
||||||
|
target=$1
|
||||||
|
# Copy over some RST files
|
||||||
|
mkdir -p $target
|
||||||
|
tools/glossary2rst.py $PROJECT_DIR/$target
|
||||||
|
|
||||||
|
for filename in doc/users-guides/source/common/app_support.rst; do
|
||||||
|
cp $filename $PROJECT_DIR/$target
|
||||||
|
done
|
||||||
|
(cd $PROJECT_DIR; git add $target)
|
||||||
|
}
|
||||||
|
|
||||||
case "$PROJECT_DIR" in
|
case "$PROJECT_DIR" in
|
||||||
|
api-site)
|
||||||
|
copy_rst firstapp/source/imported/
|
||||||
|
;;
|
||||||
ha-guide)
|
ha-guide)
|
||||||
|
copy_rst doc/ha-guide/source/imported
|
||||||
GLOSSARY_SUB_DIR="doc/glossary"
|
GLOSSARY_SUB_DIR="doc/glossary"
|
||||||
ENT_DIR="high-availability-guide"
|
ENT_DIR="high-availability-guide"
|
||||||
CHECK_MARK_DIR="figures"
|
CHECK_MARK_DIR="figures"
|
||||||
@ -40,23 +56,26 @@ case "$PROJECT_DIR" in
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
GLOSSARY_DIR="$PROJECT_DIR/$GLOSSARY_SUB_DIR"
|
|
||||||
|
|
||||||
cp doc/glossary/glossary-terms.xml $GLOSSARY_DIR/
|
if [[ "$PROJECT" != "api-site" ]] ; then
|
||||||
# Copy only Japanese and zh_CN translations since ha-guide,
|
GLOSSARY_DIR="$PROJECT_DIR/$GLOSSARY_SUB_DIR"
|
||||||
# security-guide, and operations-guide are only translated to Japanese
|
|
||||||
# currently while the ha-guide is additionally translated to zh_CN.
|
cp doc/glossary/glossary-terms.xml $GLOSSARY_DIR/
|
||||||
# Training-guides is not translated at all.
|
# Copy only Japanese and zh_CN translations since ha-guide,
|
||||||
cp doc/glossary/locale/{ja,zh_CN}.po $GLOSSARY_DIR/locale/
|
# security-guide, and operations-guide are only translated to Japanese
|
||||||
sed -i -e "s|\"../common/entities/openstack.ent\"|\"../$ENT_DIR/openstack.ent\"|" \
|
# currently while the ha-guide is additionally translated to zh_CN.
|
||||||
|
# Training-guides is not translated at all.
|
||||||
|
cp doc/glossary/locale/{ja,zh_CN}.po $GLOSSARY_DIR/locale/
|
||||||
|
sed -i -e "s|\"../common/entities/openstack.ent\"|\"../$ENT_DIR/openstack.ent\"|" \
|
||||||
$GLOSSARY_DIR/glossary-terms.xml
|
$GLOSSARY_DIR/glossary-terms.xml
|
||||||
(cd $PROJECT_DIR;git add $GLOSSARY_SUB_DIR)
|
(cd $PROJECT_DIR; git add $GLOSSARY_SUB_DIR)
|
||||||
|
|
||||||
# Sync entitites file
|
# Sync entitites file
|
||||||
cp doc/common/entities/openstack.ent $GLOSSARY_DIR/../$ENT_DIR/
|
cp doc/common/entities/openstack.ent $GLOSSARY_DIR/../$ENT_DIR/
|
||||||
sed -i -e "s|imagedata fileref=\"../common/figures|imagedata fileref=\"$CHECK_MARK_DIR|" \
|
sed -i -e "s|imagedata fileref=\"../common/figures|imagedata fileref=\"$CHECK_MARK_DIR|" \
|
||||||
$GLOSSARY_DIR/../$ENT_DIR/openstack.ent
|
$GLOSSARY_DIR/../$ENT_DIR/openstack.ent
|
||||||
|
|
||||||
# Add files
|
# Add files
|
||||||
(cd $PROJECT_DIR;git add $GLOSSARY_SUB_DIR \
|
(cd $PROJECT_DIR; git add $GLOSSARY_SUB_DIR \
|
||||||
$GLOSSARY_SUB_DIR/../$ENT_DIR/openstack.ent)
|
$GLOSSARY_SUB_DIR/../$ENT_DIR/openstack.ent)
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user