15 lines
255 B
Bash
15 lines
255 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [[ $# -eq 0 ]]
|
||
|
then
|
||
|
echo "usage: $0 [-i] <fichier>"
|
||
|
echo ""
|
||
|
echo -e "-i\tindente le fichier"
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
file=${@:$#}
|
||
|
|
||
|
[[ $1 =~ "-i" ]] && indent -linux $file
|
||
|
/usr/src/linux/scripts/checkpatch.pl -f --no-tree --strict $file
|