Home | History | Annotate | Download | only in build_scripts
      1 #!/bin/bash
      2 
      3 # Builds ltp
      4 
      5 # Copyright (C) 2003-2006 IBM
      6 #
      7 # This program is free software; you can redistribute it and/or
      8 # modify it under the terms of the GNU General Public License as
      9 # published by the Free Software Foundation; either version 2 of the
     10 # License, or (at your option) any later version.
     11 #
     12 # This program is distributed in the hope that it will be useful, but
     13 # WITHOUT ANY WARRANTY; without even the implied warranty of
     14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     15 # General Public License for more details.
     16 #
     17 # You should have received a copy of the GNU General Public License
     18 # along with this program; if not, write to the Free Software
     19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     20 # 02111-1307, USA.
     21 
     22 
     23 source "$POUNDER_HOME/libpounder.sh"
     24 
     25 # Go up two levels to the top ltp dir.
     26 cd "$POUNDER_HOME/../../"
     27 
     28 # Build
     29 ./configure
     30 make -j$NR_CPUS
     31 MK_RET=$?
     32 
     33 if [ $MK_RET -eq 0 ]; then
     34 	make DESTDIR=$POUNDER_TMPDIR install
     35 	MK_RET=$?
     36 fi
     37 
     38 exit $MK_RET
     39