rpmdist.mk, pkg.sh: Fix whitespace handling in HASH file generation

Generating the $(TOPDIR)/HASH file produced a warning for every
package file containing a whitespace character. Hopefully, this
build fixes the problem, by working on zero-delimited lists
of file names

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-11-21 13:47:38 +00:00
commit d78768b8b8
2 changed files with 7 additions and 7 deletions

View file

@ -90,7 +90,7 @@ scm_files()
{
(
cd $TOPDIR
/bin/bash $MOD_SCRIPT_DIR/list-cvs-files.sh -f
/bin/bash $MOD_SCRIPT_DIR/list-cvs-files.sh -f $@
)
}
@ -98,9 +98,9 @@ calculate_hash()
{
(
cd $TOPDIR
scm_files | \
grep -v "CHANGES\|VERSION\|HASH\|MD5SUMS\|_RPM_RUN" | \
xargs md5sum | md5sum | sed 's/ .*//'
scm_files -z | \
grep -vz "CHANGES\|VERSION\|HASH\|MD5SUMS\|_RPM_RUN" | \
xargs -0 md5sum | md5sum | sed 's/ .*//'
)
}