1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Only validate features committed to git

Change-Id: Icd2427c515bb0cc79e9179ba00216c173264ca17
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
This commit is contained in:
Torbjörn Svensson 2020-07-04 14:20:10 +02:00 committed by Jonah Graham
parent 6e19332c33
commit 1073159011

View file

@ -18,7 +18,7 @@ set -e # error out on any failed commands
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
echo "Normalizing branding content on all features" echo "Normalizing branding content on all features"
find * -name feature.xml -not -path */target/* | while read feature_xml; do git ls-files -- \*/feature.xml | while read feature_xml; do
plugin=$(xmllint --xpath 'string(//feature/@plugin)' $feature_xml) plugin=$(xmllint --xpath 'string(//feature/@plugin)' $feature_xml)
if [ -z "$plugin" ]; then if [ -z "$plugin" ]; then
plugin=$(xmllint --xpath 'string(//feature/@id)' $feature_xml) plugin=$(xmllint --xpath 'string(//feature/@id)' $feature_xml)