summaryrefslogtreecommitdiffstats
path: root/util
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:43:54 +0100
commit97afd2b6b13fd79bccf8b85abbc1c15af4b945d4 (patch)
tree407fe2ed7c2d3686377c4dbc6f603246bbcf3557 /util
parentd4fd89996866f320d6193b5f5e2c2b9efeed31c5 (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) (cherry picked from commit 3be389435fc7b94623d972b622dbd9f0cd5c34f7)
Diffstat (limited to 'util')
-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"