• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/google-breakpad/gen-syms.sh
Pascal HuerstPascal Huerst committed 09a1a10f48231 Jul 2014
Raw file
Source viewDiff to previous
 
1
#!/bin/sh
2
NAME="${0##*/}"
3
STAGING_DIR="${1}"
4
TARGET_DIR="${2}"
5
shift 2
6
​
7
SYMBOLS_DIR="${STAGING_DIR}/usr/share/google-breakpad-symbols"
8
rm -rf "${SYMBOLS_DIR}"
9
mkdir -p "${SYMBOLS_DIR}"
10
​
11
error() {
12
    fmt="${1}"; shift
13
    printf "%s: ${fmt}" "${NAME}" "${@}" >&2
14
    exit 1
15
}
16
​
17
for FILE in ${@}; do
18
    f="${TARGET_DIR}${FILE}"
19
    if [ ! -e "${f}" ]; then
20
        error "%s: No such file or directory\n" "${FILE}"
21
    fi
22
    if [ -d "${f}" ]; then
23
        error "%s: Is a directory\n" "${FILE}"
24
    fi
25
    if dump_syms "${f}" > "${SYMBOLS_DIR}/tmp.sym" 2>/dev/null; then
26
        hash=$(head -n1 "${SYMBOLS_DIR}/tmp.sym" | cut -d ' ' -f 4);
27
        filename=$(basename "${FILE}");
28
        mkdir -p "${SYMBOLS_DIR}/${filename}/${hash}"
29
        mv "${SYMBOLS_DIR}/tmp.sym" "${SYMBOLS_DIR}/${filename}/${hash}/${filename}.sym";
30
    else
31
        error "Error dumping symbols for: '%s'\n" "${FILE}"
32
    fi
33
done
34
rm -rf "${SYMBOLS_DIR}/tmp"
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.