forked from radareorg/radare2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
indent-whitelist.sh
executable file
·102 lines (88 loc) · 1.57 KB
/
indent-whitelist.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/bin/sh
FILES="
libr/util/mem.c
libr/util/base64.c
libr/util/name.c
libr/util/idpool.c
libr/util/stack.c
libr/util/slist.c
libr/util/log.c
libr/util/cache.c
libr/util/print.c
libr/crypto/hash/calc.c
libr/crypto/hash/crc16.c
libr/crypto/hash/luhn.c
libr/crypto/hash/xxcrypto/hash.c
libr/crypto/hash/md4.c
libr/crypto/hash/adler32.c
libr/crypto/hash/crypto/hash.c
libr/crypto/hash/sha2.c
libr/reg/reg.c
libr/reg/arena.c
libr/reg/double.c
libr/reg/cond.c
libr/reg/value.c
libr/reg/profile.c
libr/include/r_list.h
libr/include/r_reg.h
libr/include/r_util.h
libr/anal/var.c
libr/anal/fcn.c
libr/anal/cycles.c
libr/anal/esil.c
libr/anal/data.c
libr/anal/flirt.c
libr/arch/p/arc/plugin.c
libr/anal/p/anal_bf.c
libr/config/config.c
libr/config/callback.c
libr/config/t/test.c
libr/fs/fs.c
libr/fs/file.c
libr/bin/bin.c
libr/bin/bin_write.c
libr/bin/dbginfo.c
libr/bin/filter.c
libr/bin/format/objc/mach0_classes.c
libr/cons/hud.c
libr/cons/2048.c
libr/cons/utf8.c
libr/cons/grep.c
libr/cons/line.c
libr/cons/canvas.c
libr/cons/editor.c
libr/core/file.c
libr/core/yank.c
libr/core/blaze.c
libr/core/cmd_egg.c
shlr/tcc/tccgen.c
shlr/tcc/libtcc.c
shlr/tcc/tccpp.c
binr/radare2/radare2.c
binr/rabin2/rabin2.c
binr/radiff2/radiff2.c
binr/rasm2/rasm2.c
binr/rax2/rax2.c
"
chk() {
if [ -z "$2" ]; then
return 0
fi
echo "$1" | grep -q "$2"
}
case "$1" in
help|-h)
echo "Usage. sys/indent-whitelist.sh [--fix] [regex]"
;;
--fix)
for f in $FILES ; do
chk $f $2 || continue
r2pm -r sys/indent.sh -i $f
done
;;
*)
for f in $FILES ; do
chk $f $1 || continue
r2pm -r sys/indent.sh -u $f
done
esac