radare2/sys/indent-whitelist.sh

103 lines
1.6 KiB
Bash
Raw Normal View History

#!/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
2022-09-16 16:46:24 +08:00
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
2017-02-27 07:40:25 +08:00
libr/reg/reg.c
libr/reg/arena.c
libr/reg/double.c
libr/reg/cond.c
libr/reg/value.c
libr/reg/profile.c
2015-12-09 07:41:44 +08:00
libr/include/r_list.h
libr/include/r_reg.h
libr/include/r_util.h
2017-03-10 06:45:26 +08:00
libr/anal/var.c
libr/anal/fcn.c
libr/anal/cycles.c
libr/anal/esil.c
libr/anal/data.c
2017-03-10 06:45:26 +08:00
libr/anal/flirt.c
libr/anal/p/anal_arc.c
libr/anal/p/anal_bf.c
2015-12-09 07:41:44 +08:00
libr/config/config.c
libr/config/callback.c
libr/config/t/test.c
2015-12-09 07:41:44 +08:00
libr/fs/fs.c
libr/fs/file.c
2015-12-09 06:55:23 +08:00
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
2016-01-07 19:04:26 +08:00
libr/cons/utf8.c
2017-03-19 10:21:40 +08:00
libr/cons/grep.c
libr/cons/line.c
libr/cons/canvas.c
2015-12-08 20:24:21 +08:00
libr/cons/editor.c
2016-01-07 19:04:26 +08:00
libr/core/file.c
libr/core/yank.c
libr/core/blaze.c
2017-03-10 06:45:26 +08:00
libr/core/cmd_egg.c
2017-11-07 15:47:39 +08:00
shlr/tcc/tccgen.c
shlr/tcc/libtcc.c
shlr/tcc/tccpp.c
binr/radare2/radare2.c
binr/rabin2/rabin2.c
2017-03-19 10:21:40 +08:00
binr/radiff2/radiff2.c
2016-03-30 22:26:46 +08:00
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