Masahiro Yamada | 3a48a91 | 2019-05-18 01:07:15 +0900 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | |
| 4 | set -e |
| 5 | |
| 6 | # Check uniqueness of module names |
| 7 | check_same_name_modules() |
| 8 | { |
Masahiro Yamada | 4a33d4f | 2019-05-20 11:54:37 +0900 | [diff] [blame] | 9 | for m in $(sed 's:.*/::' modules.order | sort | uniq -d) |
Masahiro Yamada | 3a48a91 | 2019-05-18 01:07:15 +0900 | [diff] [blame] | 10 | do |
Masahiro Yamada | 4a33d4f | 2019-05-20 11:54:37 +0900 | [diff] [blame] | 11 | echo "warning: same module names found:" >&2 |
Masahiro Yamada | 1bd9a46 | 2019-07-17 15:17:50 +0900 | [diff] [blame] | 12 | sed -n "/\/$m/s:^: :p" modules.order >&2 |
Masahiro Yamada | 3a48a91 | 2019-05-18 01:07:15 +0900 | [diff] [blame] | 13 | done |
| 14 | } |
| 15 | |
| 16 | check_same_name_modules |