2015-12-08 19:55:29 +08:00
|
|
|
#!/bin/sh
|
|
|
|
FILES="
|
2017-02-13 05:44:13 +08:00
|
|
|
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/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
|
2017-02-13 05:44:13 +08:00
|
|
|
libr/include/r_util.h
|
|
|
|
|
2015-12-14 21:32:18 +08:00
|
|
|
libr/anal/cycles.c
|
|
|
|
libr/anal/esil.c
|
|
|
|
libr/anal/data.c
|
2016-05-18 16:02:35 +08:00
|
|
|
libr/anal/p/anal_arc.c
|
2017-02-13 05:44:13 +08:00
|
|
|
|
2015-12-09 07:41:44 +08:00
|
|
|
libr/config/config.c
|
|
|
|
libr/config/callback.c
|
|
|
|
libr/config/t/test.c
|
2017-02-13 05:44:13 +08:00
|
|
|
|
2015-12-09 07:41:44 +08:00
|
|
|
libr/fs/fs.c
|
2017-02-13 05:44:13 +08:00
|
|
|
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
|
2017-02-13 05:44:13 +08:00
|
|
|
|
2015-12-08 19:55:29 +08:00
|
|
|
libr/cons/hud.c
|
|
|
|
libr/cons/2048.c
|
2016-01-07 19:04:26 +08:00
|
|
|
libr/cons/utf8.c
|
2015-12-08 19:55:29 +08:00
|
|
|
libr/cons/line.c
|
|
|
|
libr/cons/canvas.c
|
2015-12-08 20:24:21 +08:00
|
|
|
libr/cons/editor.c
|
2017-02-13 05:44:13 +08:00
|
|
|
|
2016-01-07 19:04:26 +08:00
|
|
|
libr/core/file.c
|
2017-02-10 09:05:58 +08:00
|
|
|
libr/core/yank.c
|
|
|
|
libr/core/blaze.c
|
2017-02-13 05:44:13 +08:00
|
|
|
|
|
|
|
binr/radare2/radare2.c
|
|
|
|
binr/rabin2/rabin2.c
|
2016-03-30 22:26:46 +08:00
|
|
|
binr/rasm2/rasm2.c
|
2017-02-10 09:05:58 +08:00
|
|
|
binr/rax2/rax2.c
|
2015-12-08 19:55:29 +08:00
|
|
|
"
|
2015-12-09 05:35:39 +08:00
|
|
|
case "$1" in
|
2015-12-09 06:55:23 +08:00
|
|
|
"help"|-h)
|
|
|
|
echo "Usage. sys/indent-whitelist.sh [commit] [apply]"
|
|
|
|
;;
|
2015-12-09 05:35:39 +08:00
|
|
|
"commit")
|
2015-12-08 19:44:05 +08:00
|
|
|
sys/indent.sh -i ${FILES}
|
|
|
|
git commit sys/indent* ${FILES}
|
2015-12-09 05:35:39 +08:00
|
|
|
;;
|
|
|
|
"apply")
|
|
|
|
sys/indent.sh -i ${FILES}
|
|
|
|
;;
|
|
|
|
*)
|
2015-12-08 19:44:05 +08:00
|
|
|
sys/indent.sh -u ${FILES}
|
2015-12-09 05:35:39 +08:00
|
|
|
esac
|