2025-11-17 18:21:13 +09:00
|
|
|
#!/bin/sh
|
2025-11-17 18:27:17 +09:00
|
|
|
format() {
|
|
|
|
|
echo "-- $1"
|
2025-11-25 05:32:58 +09:00
|
|
|
old="`pwd`"
|
2025-11-17 18:27:17 +09:00
|
|
|
cd $1
|
|
|
|
|
clang-format --verbose -i `find $2 -name "*.c" -or -name "*.h"`
|
2025-11-25 05:32:58 +09:00
|
|
|
cd "$old"
|
2025-11-17 18:27:17 +09:00
|
|
|
}
|
2025-11-17 18:21:13 +09:00
|
|
|
|
2025-11-17 18:27:17 +09:00
|
|
|
format mdebase "mdm milkwm mpanel"
|
2025-11-25 11:16:13 +09:00
|
|
|
format mdelibs "audio audio/thread core sound include"
|
2025-11-30 08:00:52 +09:00
|
|
|
format mdeutils "mbiff mauplay mcompass mclock mimview"
|