summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2010-07-26 01:49:12 +0200
committerDenys Vlasenko2010-07-26 01:49:12 +0200
commitba2dcccd799963ac74ee92300df494947820608b (patch)
treee27140083f1f4faebe86cde97a3dabbff5ac7f9e
parent0f8960542f6f5ae258e72e56ba7296a01a9c10af (diff)
downloadbusybox-ba2dcccd799963ac74ee92300df494947820608b.zip
busybox-ba2dcccd799963ac74ee92300df494947820608b.tar.gz
*: trailing empty lines removed
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/libunarchive/unxz/README1
-rw-r--r--debianutils/Config.src1
-rw-r--r--docs/busybox_footer.pod1
-rw-r--r--docs/cgi/cl.html2
-rw-r--r--docs/cgi/env.html2
-rw-r--r--docs/cgi/in.html2
-rw-r--r--docs/cgi/interface.html2
-rw-r--r--docs/cgi/out.html2
-rw-r--r--docs/contributing.txt2
-rw-r--r--docs/posix_conformance.txt1
-rw-r--r--e2fsprogs/old_e2fsprogs/e2fsck.h2
-rw-r--r--e2fsprogs/old_e2fsprogs/e2p/ostype.c2
-rw-r--r--examples/bootfloppy/display.txt1
-rw-r--r--examples/bootfloppy/etc/fstab1
-rw-r--r--examples/bootfloppy/etc/inittab1
-rw-r--r--examples/bootfloppy/etc/profile1
-rwxr-xr-xexamples/bootfloppy/mkrootfs.sh1
-rw-r--r--examples/inittab1
-rw-r--r--init/reboot.h1
-rw-r--r--libbb/README1
-rw-r--r--libbb/selinux_common.c1
-rw-r--r--networking/libiproute/ll_proto.c1
-rw-r--r--scripts/Makefile.host1
-rw-r--r--scripts/Makefile.lib2
-rw-r--r--scripts/basic/docproc.c1
-rwxr-xr-xscripts/find_stray_empty_lines10
-rwxr-xr-xscripts/kconfig/check.sh1
-rw-r--r--scripts/kconfig/lex.zconf.c_shipped1
-rw-r--r--scripts/kconfig/menu.c1
-rw-r--r--scripts/kconfig/util.c1
-rw-r--r--scripts/kconfig/zconf.hash.c_shipped1
-rw-r--r--scripts/kconfig/zconf.tab.c_shipped2
-rwxr-xr-xscripts/showasm1
-rw-r--r--selinux/Config.src1
-rwxr-xr-xshell/hush_test/hush-misc/break1.tests1
-rw-r--r--sysklogd/Config.src1
-rw-r--r--testsuite/basename/basename-works1
-rw-r--r--testsuite/dirname/dirname-works1
-rw-r--r--testsuite/expr/expr-works1
-rw-r--r--testsuite/ln/ln-preserves-soft-links1
-rwxr-xr-xtestsuite/readlink.tests1
-rw-r--r--testsuite/uptime/uptime-works1
42 files changed, 15 insertions, 46 deletions
diff --git a/archival/libunarchive/unxz/README b/archival/libunarchive/unxz/README
index f79b0a4..c5972f6 100644
--- a/archival/libunarchive/unxz/README
+++ b/archival/libunarchive/unxz/README
@@ -133,4 +133,3 @@ Specifying the calling convention
For example, on Windows, you may make all functions use the stdcall
calling convention by defining XZ_FUNC=__stdcall when building and
using the functions from XZ Embedded.
-
diff --git a/debianutils/Config.src b/debianutils/Config.src
index 838d8f0..cbc09b5 100644
--- a/debianutils/Config.src
+++ b/debianutils/Config.src
@@ -83,4 +83,3 @@ config WHICH
print out their pathnames.
endmenu
-
diff --git a/docs/busybox_footer.pod b/docs/busybox_footer.pod
index 5ed9379..47eabae 100644
--- a/docs/busybox_footer.pod
+++ b/docs/busybox_footer.pod
@@ -253,4 +253,3 @@ Tito Ragusa <farmatito@tiscali.it>
devfsd and size optimizations in strings, openvt and deallocvt.
=cut
-
diff --git a/docs/cgi/cl.html b/docs/cgi/cl.html
index 5779d62..4f8faae 100644
--- a/docs/cgi/cl.html
+++ b/docs/cgi/cl.html
@@ -43,4 +43,4 @@ CGI - Common Gateway Interface
</p><address><a href="http://hoohoo.ncsa.uiuc.edu/cgi/mailtocgi.html">cgi@ncsa.uiuc.edu</a></address>
-</body></html> \ No newline at end of file
+</body></html>
diff --git a/docs/cgi/env.html b/docs/cgi/env.html
index 924026b..b83c750 100644
--- a/docs/cgi/env.html
+++ b/docs/cgi/env.html
@@ -146,4 +146,4 @@ interface specification</a> <p>
CGI - Common Gateway Interface
</p><address><a href="http://hoohoo.ncsa.uiuc.edu/cgi/mailtocgi.html">cgi@ncsa.uiuc.edu</a></address>
-</body></html> \ No newline at end of file
+</body></html>
diff --git a/docs/cgi/in.html b/docs/cgi/in.html
index 679306a..7ee5fe6 100644
--- a/docs/cgi/in.html
+++ b/docs/cgi/in.html
@@ -30,4 +30,4 @@ interface specification</a> <p>
CGI - Common Gateway Interface
</p><address><a href="http://hoohoo.ncsa.uiuc.edu/cgi/mailtocgi.html">cgi@ncsa.uiuc.edu</a></address>
-</body></html> \ No newline at end of file
+</body></html>
diff --git a/docs/cgi/interface.html b/docs/cgi/interface.html
index ea73ce3..0be016b 100644
--- a/docs/cgi/interface.html
+++ b/docs/cgi/interface.html
@@ -26,4 +26,4 @@ the following is a hotlink to graphic detail.</p><p>
CGI - Common Gateway Interface
</p><address><a href="http://hoohoo.ncsa.uiuc.edu/cgi/mailtocgi.html">cgi@ncsa.uiuc.edu</a></address>
-</body></html> \ No newline at end of file
+</body></html>
diff --git a/docs/cgi/out.html b/docs/cgi/out.html
index 2203ee5..5266985 100644
--- a/docs/cgi/out.html
+++ b/docs/cgi/out.html
@@ -123,4 +123,4 @@ interface specification</a> <p>
CGI - Common Gateway Interface
</p><address><a href="http://hoohoo.ncsa.uiuc.edu/cgi/mailtocgi.html">cgi@ncsa.uiuc.edu</a></address>
-</body></html> \ No newline at end of file
+</body></html>
diff --git a/docs/contributing.txt b/docs/contributing.txt
index d06e4a2..39aaef1 100644
--- a/docs/contributing.txt
+++ b/docs/contributing.txt
@@ -426,5 +426,3 @@ you're having difficulty following some of the steps outlined in this
document don't worry, the folks on the Busybox mailing list are a fairly
good-natured bunch and will work with you to help get your patches into shape
or help you make contributions.
-
-
diff --git a/docs/posix_conformance.txt b/docs/posix_conformance.txt
index d9fa116..5b616d7 100644
--- a/docs/posix_conformance.txt
+++ b/docs/posix_conformance.txt
@@ -739,4 +739,3 @@ xargs Busybox specific options:
zcat POSIX options: None
zcat Busybox specific options: None
-
diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.h b/e2fsprogs/old_e2fsprogs/e2fsck.h
index 73d398f..fdfa2d8 100644
--- a/e2fsprogs/old_e2fsprogs/e2fsck.h
+++ b/e2fsprogs/old_e2fsprogs/e2fsck.h
@@ -636,5 +636,3 @@ static inline int tid_geq(tid_t x, tid_t y)
int difference = (x - y);
return (difference >= 0);
}
-
-
diff --git a/e2fsprogs/old_e2fsprogs/e2p/ostype.c b/e2fsprogs/old_e2fsprogs/e2p/ostype.c
index 1abe2ba..6a2f178 100644
--- a/e2fsprogs/old_e2fsprogs/e2p/ostype.c
+++ b/e2fsprogs/old_e2fsprogs/e2p/ostype.c
@@ -70,5 +70,3 @@ int main(int argc, char **argv)
exit(0);
}
#endif
-
-
diff --git a/examples/bootfloppy/display.txt b/examples/bootfloppy/display.txt
index 399d326..7cae48b 100644
--- a/examples/bootfloppy/display.txt
+++ b/examples/bootfloppy/display.txt
@@ -1,4 +1,3 @@
This boot floppy is made with Busybox, uClibc, and the Linux kernel.
Hit RETURN to boot or enter boot parameters at the prompt below.
-
diff --git a/examples/bootfloppy/etc/fstab b/examples/bootfloppy/etc/fstab
index ef14ca2..b31f602 100644
--- a/examples/bootfloppy/etc/fstab
+++ b/examples/bootfloppy/etc/fstab
@@ -1,2 +1 @@
proc /proc proc defaults 0 0
-
diff --git a/examples/bootfloppy/etc/inittab b/examples/bootfloppy/etc/inittab
index eb3e979..1ac9f68 100644
--- a/examples/bootfloppy/etc/inittab
+++ b/examples/bootfloppy/etc/inittab
@@ -2,4 +2,3 @@
::respawn:-/bin/sh
tty2::askfirst:-/bin/sh
::ctrlaltdel:/bin/umount -a -r
-
diff --git a/examples/bootfloppy/etc/profile b/examples/bootfloppy/etc/profile
index 8a7c77d..cf68d33 100644
--- a/examples/bootfloppy/etc/profile
+++ b/examples/bootfloppy/etc/profile
@@ -5,4 +5,3 @@ echo -n "Processing /etc/profile... "
# no-op
echo "Done"
echo
-
diff --git a/examples/bootfloppy/mkrootfs.sh b/examples/bootfloppy/mkrootfs.sh
index 5cdff21..a7fc48b 100755
--- a/examples/bootfloppy/mkrootfs.sh
+++ b/examples/bootfloppy/mkrootfs.sh
@@ -102,4 +102,3 @@ then
rmdir $TARGET_DIR
gzip -9 rootfs
fi
-
diff --git a/examples/inittab b/examples/inittab
index 64fc4fc..c4e0af5 100644
--- a/examples/inittab
+++ b/examples/inittab
@@ -87,4 +87,3 @@ tty5::respawn:/sbin/getty 38400 tty6
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
::shutdown:/sbin/swapoff -a
-
diff --git a/init/reboot.h b/init/reboot.h
index ff045fd..9497639 100644
--- a/init/reboot.h
+++ b/init/reboot.h
@@ -28,4 +28,3 @@
# define RB_POWER_OFF RB_HALT_SYSTEM
# endif
#endif
-
diff --git a/libbb/README b/libbb/README
index 4f28f7e..6e63dc5 100644
--- a/libbb/README
+++ b/libbb/README
@@ -8,4 +8,3 @@ that you wrote that is mis-attributed, do let me know so we can fix that up.
Erik Andersen
<andersen@codepoet.org>
-
diff --git a/libbb/selinux_common.c b/libbb/selinux_common.c
index 7b56967..2acb50e 100644
--- a/libbb/selinux_common.c
+++ b/libbb/selinux_common.c
@@ -53,4 +53,3 @@ void FAST_FUNC selinux_preserve_fcontext(int fdesc)
setfscreatecon_or_die(context);
freecon(context);
}
-
diff --git a/networking/libiproute/ll_proto.c b/networking/libiproute/ll_proto.c
index 145902b..1cd576f 100644
--- a/networking/libiproute/ll_proto.c
+++ b/networking/libiproute/ll_proto.c
@@ -126,4 +126,3 @@ int FAST_FUNC ll_proto_a2n(unsigned short *id, char *buf)
*id = htons(i);
return 0;
}
-
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
index 23bd9ff..2e62850 100644
--- a/scripts/Makefile.host
+++ b/scripts/Makefile.host
@@ -153,4 +153,3 @@ $(host-cshlib): %: $(host-cshobjs) FORCE
targets += $(host-csingle) $(host-cmulti) $(host-cobjs)\
$(host-cxxmulti) $(host-cxxobjs) $(host-cshlib) $(host-cshobjs)
-
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index be679b6..3e54ea7 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -168,5 +168,3 @@ cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
quiet_cmd_gzip = GZIP $@
cmd_gzip = gzip -f -9 < $< > $@
-
-
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c
index 50ef371..db30019 100644
--- a/scripts/basic/docproc.c
+++ b/scripts/basic/docproc.c
@@ -397,4 +397,3 @@ int main(int argc, char **argv)
fflush(stdout);
return exitstatus;
}
-
diff --git a/scripts/find_stray_empty_lines b/scripts/find_stray_empty_lines
index 58daf2f..60873da 100755
--- a/scripts/find_stray_empty_lines
+++ b/scripts/find_stray_empty_lines
@@ -5,3 +5,13 @@ grep -n -A1 -r $'^\t*{$' . | grep -B1 '.[ch]-[0-9]*-$'
# or (less surefire ones):
grep -n -B1 -r $'^\t*}' . | grep -A1 '.[ch]-[0-9]*-$'
grep -n -A1 -r $'^\t*{' . | grep -B1 '.[ch]-[0-9]*-$'
+
+# find trailing empty lines
+find -type f | xargs tail -1 | while read file; do
+ test x"$file" = x"" && continue
+ read lastline
+ #echo "|$file|$lastline"
+ if test x"$lastline" = x""; then
+ echo "$file"
+ fi
+done
diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh
index fa59cbf..15fc294 100755
--- a/scripts/kconfig/check.sh
+++ b/scripts/kconfig/check.sh
@@ -11,4 +11,3 @@ EOF
if [ ! "$?" -eq "0" ]; then
echo -DKBUILD_NO_NLS;
fi
-
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped
index 5fc323d..4837bbf 100644
--- a/scripts/kconfig/lex.zconf.c_shipped
+++ b/scripts/kconfig/lex.zconf.c_shipped
@@ -2322,4 +2322,3 @@ char *zconf_curname(void)
{
return current_pos.file ? current_pos.file->name : "<none>";
}
-
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 0fce20c..14cf2ea 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -394,4 +394,3 @@ struct menu *menu_get_parent_menu(struct menu *menu)
}
return menu;
}
-
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c
index ef4c832..2630919 100644
--- a/scripts/kconfig/util.c
+++ b/scripts/kconfig/util.c
@@ -112,4 +112,3 @@ const char *str_get(struct gstr *gs)
{
return gs->s;
}
-
diff --git a/scripts/kconfig/zconf.hash.c_shipped b/scripts/kconfig/zconf.hash.c_shipped
index 345f0fc..d39cf18 100644
--- a/scripts/kconfig/zconf.hash.c_shipped
+++ b/scripts/kconfig/zconf.hash.c_shipped
@@ -228,4 +228,3 @@ kconf_id_lookup (register const char *str, register unsigned int len)
}
return 0;
}
-
diff --git a/scripts/kconfig/zconf.tab.c_shipped b/scripts/kconfig/zconf.tab.c_shipped
index b62724d..a27d256 100644
--- a/scripts/kconfig/zconf.tab.c_shipped
+++ b/scripts/kconfig/zconf.tab.c_shipped
@@ -2169,5 +2169,3 @@ void zconfdump(FILE *out)
#include "expr.c"
#include "symbol.c"
#include "menu.c"
-
-
diff --git a/scripts/showasm b/scripts/showasm
index 0464426..dc2cd70 100755
--- a/scripts/showasm
+++ b/scripts/showasm
@@ -18,4 +18,3 @@ then
fi
objdump -d $1 | sed -n -e '/./{H;$!d}' -e "x;/^.[0-9a-fA-F]* <$2>:/p"
-
diff --git a/selinux/Config.src b/selinux/Config.src
index 64a9920..47d15b6 100644
--- a/selinux/Config.src
+++ b/selinux/Config.src
@@ -122,4 +122,3 @@ config SESTATUS
Displays the status of SELinux.
endmenu
-
diff --git a/shell/hush_test/hush-misc/break1.tests b/shell/hush_test/hush-misc/break1.tests
index 912f149..3a6b060 100755
--- a/shell/hush_test/hush-misc/break1.tests
+++ b/shell/hush_test/hush-misc/break1.tests
@@ -1,3 +1,2 @@
while true; do echo A; break; echo B; done
echo OK:$?
-
diff --git a/sysklogd/Config.src b/sysklogd/Config.src
index bfe2d1c..41c0d28 100644
--- a/sysklogd/Config.src
+++ b/sysklogd/Config.src
@@ -128,4 +128,3 @@ config LOGGER
problems that occur within programs and scripts.
endmenu
-
diff --git a/testsuite/basename/basename-works b/testsuite/basename/basename-works
index 38907d4..7140e99 100644
--- a/testsuite/basename/basename-works
+++ b/testsuite/basename/basename-works
@@ -1,2 +1 @@
test x$(basename $(pwd)) = x$(busybox basename $(pwd))
-
diff --git a/testsuite/dirname/dirname-works b/testsuite/dirname/dirname-works
index f339c8f..d673dd9 100644
--- a/testsuite/dirname/dirname-works
+++ b/testsuite/dirname/dirname-works
@@ -1,2 +1 @@
test x$(dirname $(pwd)) = x$(busybox dirname $(pwd))
-
diff --git a/testsuite/expr/expr-works b/testsuite/expr/expr-works
index af49ac4..5a0fffb 100644
--- a/testsuite/expr/expr-works
+++ b/testsuite/expr/expr-works
@@ -56,4 +56,3 @@ busybox expr 0 \>= 1
if [ $? != 1 ] ; then
exit 1;
fi;
-
diff --git a/testsuite/ln/ln-preserves-soft-links b/testsuite/ln/ln-preserves-soft-links
index a8123ec..3a49bed 100644
--- a/testsuite/ln/ln-preserves-soft-links
+++ b/testsuite/ln/ln-preserves-soft-links
@@ -6,4 +6,3 @@ if [ $? != 0 ] ; then
exit 0;
fi
exit 1;
-
diff --git a/testsuite/readlink.tests b/testsuite/readlink.tests
index e6822df..ecc3ad0 100755
--- a/testsuite/readlink.tests
+++ b/testsuite/readlink.tests
@@ -29,4 +29,3 @@ testing "readlink -f on a wierd dir" "readlink -f $TESTDIR/../$TESTFILE" "$PWD/$
# clean up
rm -r "$TESTLINK" "$TESTDIR"
-
diff --git a/testsuite/uptime/uptime-works b/testsuite/uptime/uptime-works
index 80e5787..6b168ab 100644
--- a/testsuite/uptime/uptime-works
+++ b/testsuite/uptime/uptime-works
@@ -1,2 +1 @@
busybox uptime
-