diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-12-30 18:09:55 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-12-30 19:05:17 +0100 |
commit | d7921c316d01cd66ab7d7dcdd283f856e883b1da (patch) | |
tree | c9fb1d98973b82440f681b26867b69eb44220300 | |
parent | fdac4cf8364c02760312a8c9650de24dba0007e5 (diff) | |
download | vendor_replicant-release-scripts-d7921c316d01cd66ab7d7dcdd283f856e883b1da.tar.gz vendor_replicant-release-scripts-d7921c316d01cd66ab7d7dcdd283f856e883b1da.tar.bz2 vendor_replicant-release-scripts-d7921c316d01cd66ab7d7dcdd283f856e883b1da.zip |
make_source_tarball.sh: fix replicant source directory path
Without that fix, if the output directory is not the current directory
(. or ./), making the tarball fails:
$ ./make_source_tarball.sh replicant-6.0-0004 releases
Fetching projects: 100% (502/502), done.
Checking out projects: 100% (502/502), done.
repo sync has finished successfully.
tar: releases/replicant-6.0-0004: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
lzip: replicant-6.0-0004.tar: Can't open input file: No such file or directory
This is because the path that referred to the Replicant source
directory was relative to the directory that the user was in when
launching make_source_tarball.sh, instead of being relative to the
current directory, in the script, when running the tar command.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rwxr-xr-x | make_source_tarball.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/make_source_tarball.sh b/make_source_tarball.sh index a8c6701..30fba39 100755 --- a/make_source_tarball.sh +++ b/make_source_tarball.sh @@ -86,7 +86,7 @@ fi cd .. tarball="${tag}.tar" if [ ! -f "${tarball}" ] && [ ! -f "${tarball}.lz" ] ; then - tar cf "${tarball}" "${replicant_dir}" || rm -f "${tarball}" + tar cf "${tarball}" "${tag}" || rm -f "${tarball}" fi # TODO: Make the tarball reproducible by removing metadata |