mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
13 lines
235 B
Bash
Executable File
13 lines
235 B
Bash
Executable File
#!/bin/sh
|
|
CFG_PATH=`dirname $0`/uncrustify.cfg
|
|
BASE_DIR=`dirname $0`
|
|
|
|
if [ $# -lt 1 ]; then
|
|
echo "usage `basename $0` file.(h/c)"
|
|
exit 1
|
|
fi
|
|
|
|
for file in "$@"; do
|
|
${BASE_DIR}/uncrustify -c ${CFG_PATH} --no-backup $file
|
|
done
|