2021-04-05 17:31:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-06-10 01:55:21 +00:00
|
|
|
MATCHES=$(git grep -n -E "(DevelopmentTeam|DEVELOPMENT_TEAM) =" .)
|
|
|
|
COUNT=$(echo -n "$MATCHES\c" | grep -cvE '(Shared.xcconfig|= "")')
|
2021-04-05 17:31:25 +00:00
|
|
|
|
|
|
|
if [ $COUNT -ne 0 ]; then
|
2021-11-21 08:06:33 +00:00
|
|
|
ERRORS=$(echo -n "$MATCHES\c" | grep -vE '= ""')
|
2021-04-05 17:31:25 +00:00
|
|
|
echo $COUNT
|
|
|
|
echo "Remove Development Team specifications from project files:"
|
|
|
|
echo "$ERRORS";
|
|
|
|
exit 1;
|
|
|
|
fi
|