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

« 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: 2012-06-08 20:35:45 UTC
  • Revision ID: package-import@ubuntu.com-20120608203545-4z7kcf2lgvpsk18y
Tags: upstream-0.6.1
ImportĀ upstreamĀ versionĀ 0.6.1

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