summaryrefslogtreecommitdiffstats
path: root/scripts/libptxdist.sh
diff options
context:
space:
mode:
authorMichael Tretter <michael.tretter@posteo.net>2018-01-30 23:09:57 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-01-31 10:20:44 +0100
commit9b905c8767804d83f467308dd051ce25bbb584fa (patch)
tree543205272f835fa46e797f61206b0772a2b7d779 /scripts/libptxdist.sh
parent6ab75eff5fdbaf495532502e9f29d7fbdcd81f2c (diff)
downloadptxdist-9b905c8767804d83f467308dd051ce25bbb584fa.tar.gz
ptxdist-9b905c8767804d83f467308dd051ce25bbb584fa.tar.xz
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 <michael.tretter@posteo.net> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/libptxdist.sh')
-rw-r--r--scripts/libptxdist.sh3
1 files changed, 2 insertions, 1 deletions
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