mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:script: Reformat shell scripts
shfmt -f source4/script/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
This commit is contained in:
parent
bf9b2d7ae1
commit
d82c0991b9
@ -7,29 +7,29 @@
|
||||
# user@host:~/samba/source>./script/find_unused_options.sh
|
||||
#
|
||||
|
||||
LIST_GLOBAL=`grep '^FN_GLOBAL' param/loadparm.c |sed -e's/^FN_GLOBAL.*(\(.*\).*,.*\(&Globals\..*\)).*/\1:\2/'`
|
||||
LIST_GLOBAL=$(grep '^FN_GLOBAL' param/loadparm.c | sed -e's/^FN_GLOBAL.*(\(.*\).*,.*\(&Globals\..*\)).*/\1:\2/')
|
||||
|
||||
LIST_LOCAL=`grep '^FN_LOCAL' param/loadparm.c |sed -e's/^FN_LOCAL.*(\(.*\).*,[ ]*\(.*\)).*/\1:\2/'`
|
||||
LIST_LOCAL=$(grep '^FN_LOCAL' param/loadparm.c | sed -e's/^FN_LOCAL.*(\(.*\).*,[ ]*\(.*\)).*/\1:\2/')
|
||||
|
||||
CFILES=`find . -name "*.c"`
|
||||
CFILES=$(find . -name "*.c")
|
||||
|
||||
for i in $LIST_GLOBAL;do
|
||||
key=`echo $i|cut -d ':' -f1`
|
||||
val=`echo $i|cut -d ':' -f2`
|
||||
for i in $LIST_GLOBAL; do
|
||||
key=$(echo $i | cut -d ':' -f1)
|
||||
val=$(echo $i | cut -d ':' -f2)
|
||||
|
||||
found=`grep "$key[ ]*()" $CFILES`
|
||||
if test -z "$found"; then
|
||||
found=$(grep "$key[ ]*()" $CFILES)
|
||||
if test -z "$found"; then
|
||||
echo "Not Used Global: $key() -> $val"
|
||||
fi
|
||||
done
|
||||
|
||||
for i in $LIST_LOCAL;do
|
||||
key=`echo $i|cut -d ':' -f1`
|
||||
val=`echo $i|cut -d ':' -f2`
|
||||
for i in $LIST_LOCAL; do
|
||||
key=$(echo $i | cut -d ':' -f1)
|
||||
val=$(echo $i | cut -d ':' -f2)
|
||||
|
||||
found=`grep "$key[ ]*(" $CFILES`
|
||||
found=$(grep "$key[ ]*(" $CFILES)
|
||||
|
||||
if test -z "$found"; then
|
||||
if test -z "$found"; then
|
||||
echo "Not Used LOCAL: $key() -> $val"
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user