DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (31ec81b5d7bb)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
#!/bin/sh
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# This script provides an execution environment for mozconfig scripts.
# This script is not meant to be called by users. Instead, some
# higher-level driver invokes it and parses the machine-tailored output.

set -e

ac_add_options() {
  local opt
  for opt; do
    case "$opt" in
    --target=*)
      echo "------BEGIN_MK_OPTION"
      echo $opt | sed s/--target/CONFIG_GUESS/
      echo "------END_MK_OPTION"
      ;;
    esac
    echo "------BEGIN_AC_OPTION"
    echo $opt
    echo "------END_AC_OPTION"
  done
}

ac_add_app_options() {
  local app
  app=$1
  shift
  echo "------BEGIN_AC_APP_OPTION"
  echo $app
  echo "$*"
  echo "------END_AC_APP_OPTION"
}

mk_add_options() {
  local opt
  for opt; do
    echo "------BEGIN_MK_OPTION"
    echo $opt
    echo "------END_MK_OPTION"
  done
}

echo "------BEGIN_BEFORE_SOURCE"
set
echo "------END_BEFORE_SOURCE"

topsrcdir=$1

. $2

unset topsrcdir

echo "------BEGIN_AFTER_SOURCE"
set
echo "------END_AFTER_SOURCE"