summary refs log tree commit diff stats
path: root/Makefile
Commit message (Expand)AuthorAgeFilesLines
* test rifle when running "make test"hut2012-04-131-1/+1
* shorten all copyright messages for better readabilityhut2012-03-141-13/+1
* Makefile: Added info about DESTDIR in "make options"hut2011-10-291-0/+1
* Makefile: Fixed "PHONY" stuffhut2011-10-291-1/+1
* Updated copyright headershut2011-10-101-1/+1
* Makefile: Fixed doctests for python3.2hut2011-10-081-1/+1
* Makefile: added `make test' back in.hut2011-10-071-1/+9
* Makefile: updatehut2011-10-051-4/+8
* Makefile: added "make todo" and added some notes in codehut2011-10-051-1/+4
* updated Makefilehut2011-09-291-1/+2
* removed tests. (half of them are outdated)hut2011-09-281-9/+1
* extended manpage and fixed {load,save}_copy_buffer commandshut2011-09-251-0/+3
* Overhauled manpage. It's in POD format now.hut2011-09-241-1/+5
* Makefile, setup.py: Fixed `make doc`hut2010-09-111-1/+0
* Makefile: simplificationhut2010-06-241-1/+1
* make doc: minor cleanup and fixhut2010-06-211-2/+2
* commited pydocs are author agnosticshpelda2010-06-211-1/+2
* INSTALL: changed logname from uninstall_info to install_log.txthut2010-06-181-1/+1
* Removed built-in support for uninstalling.hut2010-06-181-5/+4
* Rewrote INSTALL and "make (un)install"hut2010-06-181-2/+12
* Makefile: removed functions which are now handled by setup.pyhut2010-06-181-51/+4
* make snapshot: prefix ranger-$VERSION/ in archiveshut2010-06-141-1/+1
* make install: Fixed script for finding PYTHON_SITE_DESThut2010-06-141-2/+6
* Makefile: dynamically get the version numberhut2010-06-091-1/+1
* simplified all_tests.py, moved to test/hut2010-06-071-2/+2
* make bm, make test: make use of PYTHON variablehut2010-05-251-2/+2
* make: replace literal python with $(PYTHON)hut2010-05-171-1/+1
* make: added DESTDIR to Makefilehut2010-05-171-9/+9
* Makefile: updatedhut2010-05-101-9/+12
* Added license header to a few fileshut2010-05-041-0/+15
* Makefile: added `make bm` to run all benchmarks BMCOUNT timeshut2010-05-031-2/+5
* Makefile: cleaned up, added automatic uninstallhut2010-05-031-58/+57
* make clean: fixedhut2010-04-071-1/+1
* Makefile: improvementshut2010-04-031-2/+2
* clean uphut2010-03-311-12/+0
* make test: reduce verbosityhut2010-03-261-1/+1
* fixed make cleanhut2010-03-251-1/+1
* make clean: safer method of cleaninghut2010-03-221-1/+1
* make compile: create pyc files toohut2010-03-221-1/+2
* make test: don't use "clean" before "test"hut2010-03-211-1/+1
* make install: chmod after copyinghut2010-03-141-0/+2
* incremented verison number v1.0.4hut2010-03-121-1/+1
* make install: catch an exceptionhut2010-03-121-0/+4
* make push: removed "hut" repohut2010-03-121-1/+0
* misc changes, make installhut2010-03-121-7/+34
* make snapshot: changed the format of the filenamehut2010-03-081-2/+3
* make minimal_snapshot: snapshot with only neccessary fileshut2010-03-081-1/+13
* make clean: fixedhut2010-02-281-2/+2
* Makefile: added make info + some improvementshut2010-02-271-7/+22
* added make snapshothut2010-02-251-0/+4
ofani-tty/blame/install-all.sh?id=24a604494d0c7f55c918eae418f1ce0da4a2acae'>^
76fe37ef ^


76fe37ef ^
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146

         
                








                                                          
                                                                                                                                       


 
                






                                                       
                                                                                                                                                                                                  

 









                                                        
                                                                                                                                                                                                                  
                                             

                                       

 



















                                                      




                     




















                                                               




                





                                           









                                          
             

            


                                       
                                         

                   




                             


               

                                                             

                
                          

                               

                          

                               
              
                          

                                   


              
       
#!/bin/sh

debian_prepare()
{
    echo
    echo Profanity installer ... updating apt repositories
    echo
    sudo apt-get update

    echo
    echo Profanity installer... installing dependencies
    echo
    sudo apt-get -y install git autoconf libssl-dev libexpat1-dev libncursesw5-dev libglib2.0-dev libnotify-dev libcurl3-dev libxss-dev

}

fedora_prepare()
{
    echo
    echo Profanity installer... installing dependencies
    echo

    ARCH=`arch`
    
    sudo yum -y install gcc git autoconf automake openssl-devel.$ARCH expat-devel.$ARCH ncurses-devel.$ARCH  glib2-devel.$ARCH libnotify-devel.$ARCH libcurl-devel.$ARCH libXScrnSaver-devel.$ARCH
}

cygwin_prepare()
{
    echo
    echo Profanity installer... installing dependencies
    echo

    wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
    chmod +x apt-cyg
    mv apt-cyg /usr/local/bin/

    apt-cyg install make gcc automake autoconf pkg-config openssl-devel expat zlib-devel libncurses-devel libncursesw-devel libglib2.0-devel libcurl-devel libidn-devel libssh2-devel libkrb5-devel openldap-devel
    ln -s /usr/bin/gcc-3.exe /usr/bin/gcc.exe

    export LIBRARY_PATH=/usr/local/lib/
}

install_lib_strophe()
{
    echo
    echo Profanity installer... installing libstrophe
    echo
    git clone git://github.com/metajack/libstrophe.git
    cd libstrophe
    ./bootstrap.sh
    ./configure
    make
    sudo make install

    cd ..
}

install_profanity()
{
    echo
    echo Profanity installer... installing Profanity
    echo
    ./configure
    make
    sudo make install
}

cyg_install_lib_strophe()
{
    echo
    echo Profanity installer... installing libstrophe
    echo
    git clone git://github.com/metajack/libstrophe.git
    cd libstrophe
    ./bootstrap.sh
    ./bootstrap.sh # second call seems to fix problem on cygwin
    ./configure
    make
    make install

    cd ..
}

cyg_install_profanity()
{
    echo
    echo Profanity installer... installing Profanity
    echo
    ./configure
    make
    make install
}

cleanup()
{
    echo
    echo Profanity installer... cleaning up
    echo

    echo Removing libstrophe repository...
    rm -rf libstrophe

    echo
    echo Profanity installer... complete!
    echo
    echo Type \'profanity\' to run.
    echo
}

OS=`uname -s`
DIST=unknown

if [ "${OS}" = "Linux" ]; then
    if [ -f /etc/fedora-release ]; then
        DIST=fedora
    elif [ -f /etc/debian_version ]; then
        DIST=debian
    fi
else
    echo $OS | grep -i cygwin
    if [ "$?" -eq 0 ]; then
        DIST=cygwin
    fi
fi

case "$DIST" in
unknown)    echo The install script will not work on this OS.
            echo Try a manual install instead.
            exit
            ;;
fedora)     fedora_prepare
            install_lib_strophe
            install_profanity
            ;;
debian)     debian_prepare
            install_lib_strophe
            install_profanity
            ;;
cygwin)     cygwin_prepare
            cyg_install_lib_strophe
            cyg_install_profanity
            ;;
esac

cleanup