#!/bin/bash
 #
 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
 # Let the wrapped binary know that it has been run through the wrapper.
 export CHROME_WRAPPER="`readlink -f "$0"`"
 
 HERE="`dirname "$CHROME_WRAPPER"`"
 
 # This also makes RPMs find the compatibly-named library symlinks.
 if [[ -n "$LD_LIBRARY_PATH" ]]; then
   LD_LIBRARY_PATH="$HERE:$HERE/lib:$HERE/bin:$LD_LIBRARY_PATH"
 else
   LD_LIBRARY_PATH="$HERE:$HERE/lib:$HERE/bin"
 fi
 export LD_LIBRARY_PATH
 
 exec -a "$0" "$HERE/bin/brick"  "$@"

