Merge "Really skip directories for translation sync"

This commit is contained in:
Jenkins 2015-11-24 10:47:56 +00:00 committed by Gerrit Code Review
commit 09cc66fa25

View File

@ -67,6 +67,13 @@ function setup_manuals {
# Grab all of the rules for the documents we care about # Grab all of the rules for the documents we care about
ZANATA_RULES= ZANATA_RULES=
# List of directories to skip
if [ "$project" == "openstack-manuals" ]; then
EXCLUDE='.*/**,**/source/common/**'
else
EXCLUDE='.*/**,**/source/common/**,**/glossary/**'
fi
# Generate pot one by one # Generate pot one by one
for FILE in ${DocFolder}/*; do for FILE in ${DocFolder}/*; do
# Skip non-directories # Skip non-directories
@ -89,6 +96,7 @@ function setup_manuals {
IS_RST=1 IS_RST=1
;; ;;
skip) skip)
EXCLUDE="$EXCLUDE,${DocFolder}/${DOCNAME}/**"
continue continue
;; ;;
esac esac
@ -107,11 +115,6 @@ function setup_manuals {
fi fi
fi fi
done done
if [ "$project" == "openstack-manuals" ]; then
EXCLUDE='.*/**,**/source/common/**'
else
EXCLUDE='.*/**,**/source/common/**,**/glossary/**'
fi
/usr/local/jenkins/slave_scripts/create-zanata-xml.py -p $project \ /usr/local/jenkins/slave_scripts/create-zanata-xml.py -p $project \
-v $version --srcdir . --txdir . $ZANATA_RULES -e "$EXCLUDE" \ -v $version --srcdir . --txdir . $ZANATA_RULES -e "$EXCLUDE" \
-f zanata.xml -f zanata.xml