diff options
author | Maarten Hoes <hoes.maarten@gmail.com> | 2014-12-02 22:40:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-04 10:51:56 +0000 |
commit | 47f20415c056ed56108dbf5a1894be3a119e8c5d (patch) | |
tree | 04f5e3aebbe9832a8c06e7ed0f92b68e23966ad2 | |
parent | cc741dcd82007db98a268cc5c3f02388f5bb0288 (diff) |
Allow for relative pathnames, by translating relative to absolutei ones.
Change-Id: Ifee8c9d744cbed16090f35b437069b3ee4c84110
Reviewed-on: https://gerrit.libreoffice.org/13281
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rwxr-xr-x | lcov-report/lcov-report.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lcov-report/lcov-report.sh b/lcov-report/lcov-report.sh index d4d17fd..8a20a46 100755 --- a/lcov-report/lcov-report.sh +++ b/lcov-report/lcov-report.sh @@ -219,19 +219,19 @@ fi while getopts ":s:t:w:C:d:abc" opt ; do case "$opt" in s) - SRC_DIR="$OPTARG" + SRC_DIR=$(readlink -f "${OPTARG?}") ;; t) - TRACEFILE_DIR="$OPTARG" + TRACEFILE_DIR=$(readlink -f "${OPTARG?}") ;; w) - HTML_DIR="$OPTARG" + HTML_DIR=$(readlink -f "${OPTARG?}") ;; c) SOURCE_COMPILE=TRUE ;; C) - BUILD_DIR="$OPTARG" + BUILD_DIR=$(readlink -f "${OPTARG?}") ;; b) BEFORE=TRUE |