]>
git.ipfire.org Git - thirdparty/systemd.git/blob - tools/find-tabs.sh
2 # SPDX-License-Identifier: LGPL-2.1+
4 TOP
=`git rev-parse --show-toplevel`
8 if [ "$2" = "" ] ; then
14 find $DIR -type f \
( -name '*.[ch]' -o -name '*.xml' \
) -exec $0 diff \
{\
} \
;
18 if [ "$2" = "" ] ; then
24 find $DIR -type f \
( -name '*.[ch]' -o -name '*.xml' \
) -exec $0 patch \
{\
} \
;
29 sed 's/\t/ /g' < "$2" > "$T"
35 sed -i 's/\t/ /g' "$2"
39 echo "Expected recdiff|recpatch|diff|patch as verb." >&2