mirror of https://github.com/GOSTSec/sgminer
Con Kolivas
13 years ago
2 changed files with 17 additions and 12 deletions
@ -1,12 +1,17 @@
@@ -1,12 +1,17 @@
|
||||
#!/bin/sh |
||||
cwd="$PWD" |
||||
bs_dir="$(dirname $(readlink -f $0))" |
||||
rm -rf "${bs_dir}"/autom4te.cache |
||||
rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh |
||||
|
||||
# You need autoconf 2.5x, preferably 2.57 or later |
||||
# You need automake 1.7 or later. 1.6 might work. |
||||
|
||||
set -e |
||||
|
||||
aclocal -I m4 |
||||
autoheader |
||||
automake --add-missing --copy |
||||
autoconf |
||||
|
||||
echo 'Running autoreconf -if...' |
||||
autoreconf -if || exit 1 |
||||
if test -z "$NOCONFIGURE" ; then |
||||
echo 'Configuring...' |
||||
cd "${bs_dir}" &> /dev/null |
||||
test "$?" = "0" || e=1 |
||||
test "$cwd" != "$bs_dir" && cd "$bs_dir" &> /dev/null |
||||
./configure $@ |
||||
test "$e" = "1" && exit 1 |
||||
cd "$cwd" |
||||
fi |
||||
|
Loading…
Reference in new issue