~ubuntu-branches/ubuntu/trusty/python-pyo/trusty

« back to all changes in this revision

Viewing changes to scripts/set_variables_OSX.sh

  • Committer: Package Import Robot
  • Author(s): Tiago Bortoletto Vaz
  • Date: 2013-01-30 00:41:56 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130130004156-t2iv3q5zsh8oe66a
Tags: 0.6.3+svn1068-1
* New upstream release.
* Start tracking upstream svn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
# Add /usr/local/lib in .bash_profile if not already done    
4
 
searchString="/usr/local/lib"
5
 
 
6
 
if [ -f ~/.bash_profile ]; then
7
 
    if `cat ~/.bash_profile | grep "${searchString}" 1>/dev/null 2>&1`; then
8
 
        echo "path already in PATH variable";
9
 
    else
10
 
        echo "adding /usr/local/lib to PATH variable in .bash_profile..."
11
 
        echo "export PATH=/usr/local/lib:/usr/local/bin:\$PATH" >> ~/.bash_profile;
12
 
    fi
13
 
else
14
 
    echo "creating .bash_profile and adding /usr/local/lib to PATH variable..."
15
 
        echo "export PATH=/usr/local/lib:/usr/local/bin:\$PATH" > ~/.bash_profile;
16
 
fi      
17
 
 
18
 
# Add VERSIONER_PYTHON_PREFER_32_BIT in .bash_profile if not already done    
19
 
searchString="VERSIONER_PYTHON_PREFER_32_BIT"
20
 
 
21
 
if `cat ~/.bash_profile | grep "${searchString}" 1>/dev/null 2>&1`; then
22
 
    echo "Variable VERSIONER_PYTHON_PREFER_32_BIT already set.";
23
 
else
24
 
    echo "Adding VERSIONER_PYTHON_PREFER_32_BIT=yes in .bash_profile...";
25
 
    echo "export VERSIONER_PYTHON_PREFER_32_BIT=yes" >> ~/.bash_profile;
26
 
fi