|
@@ -177,9 +177,8 @@ for f in "$@"; do
|
|
done
|
|
done
|
|
|
|
|
|
if [ "$DUPHEAD" = "yes" ] && [ -n "$files" ]; then
|
|
if [ "$DUPHEAD" = "yes" ] && [ -n "$files" ]; then
|
|
- egrep "^[[:space:]]*#[[:space:]]*include" $files | tr -d '[:blank:]' \
|
|
|
|
- | sort | uniq -c | awk '{if ($1 > 1) print $0}'
|
|
|
|
- if [ $? -eq 0 ]; then
|
|
|
|
|
|
+ if egrep "^[[:space:]]*#[[:space:]]*include" $files | tr -d '[:blank:]' \
|
|
|
|
+ | sort | uniq -c | grep -v '^ *1 '; then
|
|
echo "Found duplicate header file includes. Please check the above files manually."
|
|
echo "Found duplicate header file includes. Please check the above files manually."
|
|
exit 1
|
|
exit 1
|
|
fi
|
|
fi
|