mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
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:
parent
ac476f10c2
commit
d78768b8b8
2 changed files with 7 additions and 7 deletions
|
|
@ -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/ .*//'
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue