monotone

monotone Mtn Source Tree

Root/nofakeroot

  • Property mtn:execute set to true
1#! /bin/sh
2
3# Usage:
4# nofakeroot [command ...]
5#
6# Runs command after removing any trace of fakeroot from the environment it
7# receives.
8
9my_PRELOAD=
10for l in $LD_PRELOAD; do
11 if ! echo $l | grep "libfakeroot[-a-z]*\\.so" > /dev/null; then
12if [ -n "$my_PRELOAD" ]; then
13 my_PRELOAD="$my_PRELOAD $l"
14else
15 my_PRELOAD="$l"
16fi
17 fi
18done
19
20was_IFS="$IFS" IFS=:
21my_LIBRARY_PATH=
22for p in $LD_LIBRARY_PATH; do
23 if ! echo $p | grep "/libfakeroot\$" > /dev/null; then
24if [ -n "$my_LIBRARY_PATH" ]; then
25 my_LIBRARY_PATH="${my_LIBRARY_PATH}:$p"
26else
27 my_LIBRARY_PATH="$p"
28fi
29 fi
30done
31IFS="$was_IFS"
32
33LD_PRELOAD="$my_PRELOAD" LD_LIBRARY_PATH="$my_LIBRARY_PATH" eval "$@"

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status