You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
279 B
20 lines
279 B
4 years ago
|
#! /bin/sh
|
||
|
|
||
|
if [ -z "$1" ]; then
|
||
|
echo "specify the file that contains a list of files"
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
files=$(cat $1)
|
||
|
|
||
|
mkdir -p out
|
||
|
|
||
|
for item in $files ; do
|
||
|
|
||
|
dn=$(dirname $item)
|
||
|
mkdir -p out/$dn
|
||
|
~/bin/uncrustify -f $item -c ~/.uncrustify/xsupplicant.cfg > out/$item
|
||
|
|
||
|
done
|
||
|
|