Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lars2015 authored Oct 3, 2024
1 parent ae0e04b commit 0f4cb02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

# Setup...
target=$(rm -rf build && mkdir -p build && cd build && pwd)
threads=$(cat /proc/cpuinfo | grep processor | wc -l)

# Prepare directories...
mkdir -p $target/src $target/bin $target/lib $target/man/man1 \
&& cp *tar.bz2 $target/src \
&& cd $target/src \
&& for f in $(ls *tar.bz2) ; do tar xvjf $f ; done \
&& for f in *.tar.bz2 ; do tar xvjf $f ; done \
|| exit

# GSL...
dir=gsl-2.7.1
cd $target/src/$dir \
&& ./configure --prefix=$target \
&& make -j$threads && make check && make install && make clean \
&& make -j && make check && make install && make clean \
|| exit

0 comments on commit 0f4cb02

Please sign in to comment.