]>
git.ipfire.org Git - thirdparty/systemd.git/blob - tools/find-double-newline.sh
2 # SPDX-License-Identifier: LGPL-2.1+
4 TOP
=`git rev-parse --show-toplevel`
9 if [ "$2" = "" ] ; then
15 find $DIR -type f \
( -name '*.[ch]' -o -name '*.xml' \
) -exec $0 diff \
{\
} \
;
19 if [ "$2" = "" ] ; then
25 find $DIR -type f \
( -name '*.[ch]' -o -name '*.xml' \
) -exec $0 patch \
{\
} \
;
30 sed '/^$/N;/^\n$/D' < "$2" > "$T"
36 sed -i '/^$/N;/^\n$/D' "$2"
40 echo "Expected recdiff|recpatch|diff|patch as verb." >&2