• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2# $HOME/.profile* or similar files may first set $DEBUGINFOD_URLS.
3# If $DEBUGINFOD_URLS is not set there, we set it from system *.url files.
4# $HOME/.*rc or similar files may then amend $DEBUGINFOD_URLS.
5# See also [man debuginfod-client-config] for other environment variables
6# such as $DEBUGINFOD_MAXSIZE, $DEBUGINFOD_MAXTIME, $DEBUGINFOD_PROGRESS.
7
8if [ -z "$DEBUGINFOD_URLS" ]; then
9    prefix="@prefix@"
10    debuginfod_urls=`sh -c "cat @sysconfdir@/debuginfod/*.urls 2>/dev/null" | tr '\n' ' '`
11    if [ -n "$debuginfod_urls" ]; then
12        DEBUGINFOD_URLS="$debuginfod_urls"
13        export DEBUGINFOD_URLS
14    fi
15    unset debuginfod_urls
16    unset prefix
17fi
18