~ubuntu-branches/ubuntu/wily/simplestreams/wily

« back to all changes in this revision

Viewing changes to tools/tenv

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2013-03-26 01:10:01 UTC
  • Revision ID: package-import@ubuntu.com-20130326011001-342bcgb65worw4r8
Tags: upstream-0.1.0~bzr191
ImportĀ upstreamĀ versionĀ 0.1.0~bzr191

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# trunkenv. prep the environment to run from this trunk
 
4
# then execute program
 
5
 
 
6
[ "${TENV_SETUP:-0}" != "0" ] && exec "$@"
 
7
if [ -z "$TOPDIR" ]; then
 
8
        mydir=${0%/*}
 
9
        startd="$PWD"
 
10
        cd "${mydir}/.."
 
11
        topdir=${PWD}
 
12
        cd $startd
 
13
else
 
14
       topdir=$TOPDIR
 
15
fi
 
16
 
 
17
export GNUPGHOME="$topdir/gnupg"
 
18
export PYTHONPATH="$topdir${PYTHONPATH:+:${PYTHONPATH}}"
 
19
export PATH=$topdir/tools:$topdir/bin:$PATH
 
20
export TENV_SETUP=1
 
21
exec "$@"