list-cvs-files.sh: Add support for -z options

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-05-07 20:33:41 +00:00
commit 8dc4c9a465
2 changed files with 23 additions and 9 deletions

View file

@ -249,15 +249,15 @@ clone.done: ssh-wrapper.sh
list-files:
@for p in $(PROJECTS); do \
$(LIST_VCS_FILES) -nf $$p | sed "s/^/$$p\//" | \
xargs realpath --relative-to=. \
$(LIST_VCS_FILES) -znf $$p | sed -z "s/^/$$p\//" | \
xargs -0 realpath --relative-to=. ;\
done
list-text-files:
@make --no-print-directory list-files | xargs file -N | grep ":.*text" | cut -d: -f1
loc-all:
@make --no-print-directory list-text-files \
@make --no-print-directory list-text-files | \
grep -v "iow-standalone\|jux3\|ntv2/contrib\|\.dia$$\|\.dat\$$\|bootsrap\.css\|mpegplayer/contrib\|gitweb.cgi" | \
xargs wc -l