updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / go-tool / go-tool.install
blobaba86f3092fb4c7b8fad0f6ba7a708c63f78ec22
1 post_install ()
3 echo '########################################################################'
4 echo 'You must setup shell intergration for go by running "python2 -m go"'
5 echo 'Or copy and paste text below into $HOME/.bashrc or $HOME/.bash_profile'
6 echo
7 echo '# Bash shell driver for 'go' (http://code.google.com/p/go-tool/).'
8 echo 'function go {'
9 echo '    export GO_SHELL_SCRIPT=$HOME/.__tmp_go.sh'
10 echo '    python2 -m go $*'
11 echo '    if [ -f $GO_SHELL_SCRIPT ] ; then'
12 echo '        source $GO_SHELL_SCRIPT'
13 echo '    fi'
14 echo '    unset GO_SHELL_SCRIPT'
15 echo '}'
16 echo 
17 echo '##########################################################################'
20 post_remove ()
22 echo '########################################################################'
23 echo 'You can remove shell intergration lines from $HOME/.bashrc or $HOME/.bash_profile'
24 echo 'I will work on the pkgbuild adding and removing this text in the future.'
25 echo
26 echo '# Bash shell driver for 'go' (http://code.google.com/p/go-tool/).'
27 echo 'function go {'
28 echo '    export GO_SHELL_SCRIPT=$HOME/.__tmp_go.sh'
29 echo '    python2 -m go $*'
30 echo '    if [ -f $GO_SHELL_SCRIPT ] ; then'
31 echo '        source $GO_SHELL_SCRIPT'
32 echo '    fi'
33 echo '    unset GO_SHELL_SCRIPT'
34 echo '}'
35 echo 
36 echo '##########################################################################'