2021-04-05 17:31:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-11-21 08:06:33 +00:00
|
|
|
MATCHES=$(grep -nR --include project.pbxproj -E "(DevelopmentTeam|DEVELOPMENT_TEAM) =" .)
|
|
|
|
COUNT=$(echo -n "$MATCHES\c" | grep -cvE '= ""')
|
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
|