]>
git.ipfire.org Git - thirdparty/systemd.git/blob - tools/find-double-newline.sh
2 # SPDX-License-Identifier: LGPL-2.1+
7 if [ "$2" = "" ] ; then
13 find $DIR -type f \
( -name '*.c' -o -name '*.xml' \
) -exec $0 diff \
{\
} \
;
17 if [ "$2" = "" ] ; then
23 find $DIR -type f \
( -name '*.c' -o -name '*.xml' \
) -exec $0 patch \
{\
} \
;
28 sed '/^$/N;/^\n$/D' < "$2" > "$T"
34 sed -i '/^$/N;/^\n$/D' "$2"
38 echo "Expected recdiff|recpatch|diff|patch as verb." >&2