From 9b905c8767804d83f467308dd051ce25bbb584fa Mon Sep 17 00:00:00 2001 From: Michael Tretter Date: Tue, 30 Jan 2018 23:09:57 +0100 Subject: scripts: fix position sensitive options for tar 1.30 tar 1.30 reports position sensitive options and returns with an error code. This causes the following error during barebox prepare. tar: The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly. tar: --exclude '.svn' has no effect tar: --exclude '.pc' has no effect tar: --exclude '.git' has no effect tar: --exclude '*.in' has no effect tar: --exclude '*.in.*' has no effect tar: --exclude '*/*~' has no effect tar: Exiting with failure status due to previous errors Reorder the arguments to tar and put the --exclude arguments before the current directory. Signed-off-by: Michael Tretter Signed-off-by: Michael Olbrich --- scripts/libptxdist.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/libptxdist.sh') diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh index 433d789ea..820a02298 100644 --- a/scripts/libptxdist.sh +++ b/scripts/libptxdist.sh @@ -438,13 +438,14 @@ ptxd_filter_dir() { mkdir -p "${dstdir}" && - tar -C "${srcdir}" -c . \ + tar -c -C "${srcdir}" \ --exclude .svn \ --exclude .pc \ --exclude .git \ --exclude "*.in" \ --exclude "*.in.*" \ --exclude "*/*~" \ + . \ | tar -C "${dstdir}" -x check_pipe_status || return -- cgit v1.2.3