build_lzo.sh 344 Bytes
Newer Older
longpanda's avatar
longpanda committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

LIBDIR=$PWD/../LIB/LZO
LZODIR=lzo-2.08

rm -rf $LIBDIR
rm -rf $LZODIR
tar -xf ${LZODIR}.tar.gz


cd $LZODIR
./configure --prefix=$LIBDIR --disable-shared

make && make install

cd ..
rm -rf $LZODIR

if [ -d $LIBDIR ]; then
    echo -e "\n========== SUCCESS ============\n"
else
    echo -e "\n========== FAILED ============\n"
fi