Merge "Fix XMLNS detection in SDK Repo XSD files."

This commit is contained in:
Raphael
2011-03-25 16:35:04 -07:00
committed by Android Code Review

View File

@@ -45,7 +45,7 @@ SCHEMA="$1"
shift shift
# Get XML:NS for SDK from the schema # Get XML:NS for SDK from the schema
XMLNS=$(sed -n '/xmlns:sdk="/s/.*"\(.*\)".*/\1/p' "$SCHEMA") XMLNS=$(sed -n '/xmlns:.*schemas.android.com\/sdk\/android\//s/.*"\(.*\)".*/\1/p' "$SCHEMA")
[[ -z "$XMLNS" ]] && error "Failed to find xmlns:sdk in $SCHEMA." [[ -z "$XMLNS" ]] && error "Failed to find xmlns:sdk in $SCHEMA."
echo "## Using xmlns:sdk=$XMLNS" echo "## Using xmlns:sdk=$XMLNS"