diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-04 14:19:29 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-04 14:47:09 +0200 |
commit | 3625b0198c74f2e01eb76b99dadba3a80f97a880 (patch) | |
tree | 9f9fc4e5bb927ad15fe225716db30b0b29332da8 /cfg.mk | |
parent | a4c544ef1282b2ac73ce43885bd7a9691958958e (diff) | |
download | libguestfs-3625b0198c74f2e01eb76b99dadba3a80f97a880.tar.gz libguestfs-3625b0198c74f2e01eb76b99dadba3a80f97a880.tar.xz libguestfs-3625b0198c74f2e01eb76b99dadba3a80f97a880.zip |
build: exempt symlinks from trailing-blank-line prohibition
* cfg.mk (sc_prohibit_trailing_blank_lines): Exempt symlinks.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -134,8 +134,9 @@ sc_prohibit_gethostby: # Disallow trailing blank lines. sc_prohibit_trailing_blank_lines: - @$(VC_LIST_EXCEPT) | xargs perl -ln -0777 -e \ - '/\n\n+$$/ and print $$ARGV' > $@-t + @$(VC_LIST_EXCEPT) \ + | xargs perl -ln -0777 -e \ + '-f $$ARGV or next; /\n\n+$$/ and print $$ARGV' > $@-t @found=0; test -s $@-t && { found=1; cat $@-t 1>&2; \ echo '$(ME): found trailing blank line(s)' 1>&2; }; \ rm -f $@-t; \ |