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