print_usage()
{
echo "Usage: $(basename $0) [-h] [-v] tags|cscope|gtags|etags [config]"
- echo "Valid configs are:"
- make showconfigs | sed 's,^,\t,'
+ echo "Examples of valid configs are: "
+ echo "x86_64-bsd, arm64-linux, ppc_64-linux"
}
# Move to the root of the git tree
find_sources "$source_dirs" '*altivec*.[chS]'
}
-check_valid_target()
-{
- if [ ! -f "config/defconfig_$1" ] ; then
- echo "Invalid config: $1"
- print_usage
- exit 0
- fi
-}
-
if [ -n "$2" ]; then
- check_valid_target $2
-
echo $2 | grep -q "linux" || linux=false
echo $2 | grep -q "bsd" || bsd=false
echo $2 | grep -q "x86_64-" || x86_64=false