Home Home > GIT Browse > vanilla
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-01-11 13:56:06 +0100
committerMichal Suchanek <msuchanek@suse.de>2019-01-14 16:17:54 +0100
commitaff5480deee35a6081956e53b3315c1c996e5300 (patch)
treeed69fd45ee0dcd3c147af3f74691e0546975faa5
parentba48e0460e40c99c853531f5d5588e5763de8e61 (diff)
tar-up.sh: do not copy files ending with ~
-rwxr-xr-xscripts/tar-up.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/tar-up.sh b/scripts/tar-up.sh
index 90c3f3ab0a..c50e4da377 100755
--- a/scripts/tar-up.sh
+++ b/scripts/tar-up.sh
@@ -195,8 +195,9 @@ CLEANFILES=()
trap 'if test -n "$CLEANFILES"; then rm -rf "${CLEANFILES[@]}"; fi' EXIT
tmpdir=$(mktemp -dt ${0##*/}.XXXXXX)
CLEANFILES=("${CLEANFILES[@]}" "$tmpdir")
+rpmfiles=$(echo rpm/* | grep -v "~$")
-cp -p rpm/* config.conf supported.conf doc/* $build_dir
+cp -p $rpmfiles config.conf supported.conf doc/* $build_dir
match="${flavor:+\\/$flavor$}"
match="${arch:+^+\\($(echo -n "${arch}" | sed 's/[, ]\+/\\\|/g')\\)\\>${match:+.*}}${match}"
[ -n "$match" ] && sed -i "/^$\|\s*#\|${match}/b; s/\(.*\)/#### \1/" $build_dir/config.conf