diff options
author | Juergen Funk <juergen.funk_ml@cib.de> | 2020-03-06 11:43:21 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-03-06 16:26:54 +0100 |
commit | d0b9d7c2915f45ad34cc8a764cb9674cfbf3203b (patch) | |
tree | 2a5f8f5c5357746c7147a169ae53817e19e4d4d9 /bin/symstore.sh | |
parent | a91e19e30833c2743c1c2ce010a2d0f06aad7706 (diff) |
symstore.sh: add vorbose mode
Change-Id: I01f9827140810080c037108021ca70f2b906b05e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90083
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'bin/symstore.sh')
-rwxr-xr-x | bin/symstore.sh | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/bin/symstore.sh b/bin/symstore.sh index b1470ae9b947..532efb16630f 100755 --- a/bin/symstore.sh +++ b/bin/symstore.sh @@ -31,6 +31,10 @@ sqlite3.dll ssl3.dll ssleay32.dll" +verbose_none() +{ + do_none= +} add_pdb() { @@ -45,10 +49,15 @@ add_pdb() ret=$(find "${INSTDIR}/" -type f -name "*.${extension}" | grep -vF "$BLACK_LIST") while IFS= read -r file do + ${VERBOSE} -n "Found: $file" # store dll/exe itself (needed for minidumps) if [ $WITHEXEC == 1 ] ; then cygpath -w "$file" >> "$list" + ${VERBOSE} " insert" + else + ${VERBOSE} " " fi + # store pdb file filename=$(basename "$file" ".${extension}") pdball+=($(grep -i "/${filename}${pdbext}" <<< ${ALL_PDBS})) @@ -56,8 +65,12 @@ add_pdb() cygpath -w "${pdball[0]}" >> "$list" fi case ${#pdball[@]} in - 0) ((++stats_notfound)) ;; - 1) ((++stats_found)) ;; + 0) ((++stats_notfound)) + ${VERBOSE} " PDB not found" + ;; + 1) ((++stats_found)) + ${VERBOSE} " ${pdball[0]} insert" + ;; *) ((++stats_morefound)) if [ -z "$(echo $file | grep -F "$MOREPDBS_OKLIST")" ]; then echo "Error: found duplicate PDBs:" @@ -65,6 +78,8 @@ add_pdb() echo " $morepdbs" done exit 1 + else + ${VERBOSE} " ${pdball[0]} insert (is in more okay list)" fi ;; esac @@ -98,13 +113,15 @@ SYM_PATH=${WORKDIR}/symstore COMMENT="" COMCMD="" WITHEXEC=1 +VERBOSE=verbose_none -USAGE="Usage: $0 [-h|-k <keep_num_versions>|-p <symbol_store_path>] +USAGE="Usage: $0 [-h|-k <keep_num_versions>|-p <symbol_store_path>|-c <comment>|-n|-v] -h: this cruft -c <comment> specifies a comment for the transaction -n do not store exe/dll on the symbole server -k <int>: keep this number of old symbol versions around (default: ${MAX_KEEP}. Set to 0 for unlimited) + -v verbose mode, output detail report of files -p <path>: specify full path to symbol store tree If no path is specified, defaults to ${SYM_PATH}. " @@ -117,6 +134,7 @@ do -p|--path) SYM_PATH="$2"; shift 2;; -c|--comment) COMCMD="/c"; COMMENT="$2"; shift 2;; -n|--noexec) WITHEXEC=0; shift ;; + -v|--verbose) VERBOSE=echo; shift ;; -h|--help) echo "${USAGE}"; exit 0;; -*) echo "${USAGE}" >&2; exit 1;; *) break;; |