![]() |
|
|||
0001 #!/bin/sh 0002 # SPDX-License-Identifier: GPL-2.0 0003 0004 set -e 0005 0006 if [ $# != 1 ]; then 0007 echo "Usage: $0 <modules.order>" >& 2 0008 exit 1 0009 fi 0010 0011 exit_code=0 0012 0013 # Check uniqueness of module names 0014 check_same_name_modules() 0015 { 0016 for m in $(sed 's:.*/::' "$1" | sort | uniq -d) 0017 do 0018 echo "error: the following would cause module name conflict:" >&2 0019 sed -n "/\/$m/s:^: :p" "$1" >&2 0020 exit_code=1 0021 done 0022 } 0023 0024 check_same_name_modules "$1" 0025 0026 exit $exit_code
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |