diff options
Diffstat (limited to 'navit/tools/cleanattr.sh')
-rwxr-xr-x | navit/tools/cleanattr.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/navit/tools/cleanattr.sh b/navit/tools/cleanattr.sh index 22e561f66..200db5b66 100755 --- a/navit/tools/cleanattr.sh +++ b/navit/tools/cleanattr.sh @@ -1,7 +1,7 @@ #!/bin/sh -# This script scans the navit sources for attributes that -# remained in attr_def.h but are no longer used. +# This script scans the navit sources for attributes that +# remained in attr_def.h but are no longer used. ATTRFILE=attr_def.h TMPDIR=/tmp @@ -28,7 +28,7 @@ if [ $? -ne 0 ] ; then fi -ATTRLIST=`grep 'ATTR(.*)' $ATTRFILE | sed 's#^ATTR(##' | sed 's#).*##'` +ATTRLIST=$(grep 'ATTR(.*)' $ATTRFILE | sed 's#^ATTR(##' | sed 's#).*##') cp $ATTRFILE $TMPFILE @@ -37,7 +37,7 @@ for ATTRNAME in $ATTRLIST ; do grep -rI $ATTR ./* > /dev/null - if [ $? -ne 0 ] ; then + if [ $? -ne 0 ] ; then echo "Unused attribute: $ATTR" grep -v "ATTR($ATTRNAME)" $TMPFILE > $TMPFILE2 mv $TMPFILE2 $TMPFILE |