~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to python/virtualenv/virtualenv_embedded/activate.csh

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This file must be used with "source bin/activate.csh" *from csh*.
2
 
# You cannot run it directly.
3
 
# Created by Davide Di Blasi <davidedb@gmail.com>.
4
 
 
5
 
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
6
 
 
7
 
# Unset irrelavent variables.
8
 
deactivate nondestructive
9
 
 
10
 
setenv VIRTUAL_ENV "__VIRTUAL_ENV__"
11
 
 
12
 
set _OLD_VIRTUAL_PATH="$PATH"
13
 
setenv PATH "$VIRTUAL_ENV/__BIN_NAME__:$PATH"
14
 
 
15
 
set _OLD_VIRTUAL_PROMPT="$prompt"
16
 
 
17
 
if ("__VIRTUAL_PROMPT__" != "") then
18
 
    set env_name = "__VIRTUAL_PROMPT__"
19
 
else
20
 
    if (`basename "$VIRTUAL_ENV"` == "__") then
21
 
        # special case for Aspen magic directories
22
 
        # see http://www.zetadev.com/software/aspen/
23
 
        set env_name = `basename \`dirname "$VIRTUAL_ENV"\``
24
 
    else
25
 
        set env_name = `basename "$VIRTUAL_ENV"`
26
 
    endif
27
 
endif
28
 
set prompt = "[$env_name] $prompt"
29
 
unset env_name
30
 
 
31
 
alias pydoc python -m pydoc
32
 
 
33
 
rehash
34