summaryrefslogtreecommitdiffstats
path: root/util/mktar.sh
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-11-24 17:51:24 +0100
committerRichard Levitte <levitte@openssl.org>2018-11-24 18:40:31 +0100
commit3be389435fc7b94623d972b622dbd9f0cd5c34f7 (patch)
treedcf26f289ecd2b73bac7caf73715cbefbdc80220 /util/mktar.sh
parentb741f153b2f24139d7210b1b0c9caf561f4900e8 (diff)
Have util/mktar.sh display the absolute path to the tarball
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/7696)
Diffstat (limited to 'util/mktar.sh')
-rwxr-xr-xutil/mktar.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/mktar.sh b/util/mktar.sh
index bf874a14d8..17115cf59d 100755
--- a/util/mktar.sh
+++ b/util/mktar.sh
@@ -30,4 +30,7 @@ if [ -z "$TARFILE" ]; then TARFILE="$NAME.tar"; fi
git archive --worktree-attributes --format=tar --prefix="$NAME/" -v HEAD \
| gzip -9 > "$TARFILE.gz"
-ls -l "$TARFILE.gz"
+# Good old way to ensure we display an absolute path
+td=`dirname $TARFILE`
+tf=`basename $TARFILE`
+ls -l "`cd $td; pwd`/$tf.gz"