74c20c99e36c4b641ff27d9bd3efe803708ecf01
[platform/upstream/elfutils.git] / config / profile.csh.in
1 # $HOME/.login* or similar files may first set $DEBUGINFOD_URLS.
2 # If $DEBUGINFOD_URLS is not set there, we set it from system *.url files.
3 # $HOME/.*rc or similar files may then amend $DEBUGINFOD_URLS.
4 # See also [man debuginfod-client-config] for other environment variables
5 # such as $DEBUGINFOD_MAXSIZE, $DEBUGINFOD_MAXTIME, $DEBUGINFOD_PROGRESS.
6
7 if (! $?DEBUGINFOD_URLS) then
8     set prefix="@prefix@"
9     set DEBUGINFOD_URLS=`sh -c 'cat "$0"/*.urls 2>/dev/null; :' "@sysconfdir@/debuginfod" | tr '\n' ' '`
10     if ( "$DEBUGINFOD_URLS" != "" ) then
11         setenv DEBUGINFOD_URLS "$DEBUGINFOD_URLS"
12     else
13         unset DEBUGINFOD_URLS
14     endif
15     unset prefix
16 endif