git.samba.org
/
sfrench
/
cifs-2.6.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
kill dentry_update_name_case()
[sfrench/cifs-2.6.git]
/
tools
/
perf
/
trace
/
beauty
/
kcmp_type.sh
1
#!/bin/sh
2
3
header_dir=$1
4
5
printf "static const char *kcmp_types[] = {\n"
6
regex='^[[:space:]]+(KCMP_(\w+)),'
7
egrep $regex ${header_dir}/kcmp.h | grep -v KCMP_TYPES, | \
8
sed -r "s/$regex/\1 \2/g" | \
9
xargs printf "\t[%s]\t= \"%s\",\n"
10
printf "};\n"