mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 09:26:27 -05:00
Rework makecheck and makedist
This commit is contained in:
parent
781dd25025
commit
cb81bb9fc7
2 changed files with 28 additions and 15 deletions
26
makecheck.sh
26
makecheck.sh
|
|
@ -17,6 +17,30 @@ if ! $SOURCE/configure; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! time make check; then
|
if ! make -j4; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! make check; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! make distclean; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! $SOURCE/configure --host=x86_64-w64-mingw32.static --build=`$SOURCE/config.guess`; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! make -j4; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! make check; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! make distclean; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
17
makedist.sh
17
makedist.sh
|
|
@ -1,17 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
|
|
||||||
CHECK=check
|
|
||||||
DEBUG=
|
|
||||||
|
|
||||||
if test "x$1" = "x-f"; then
|
|
||||||
CHECK=all
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$1" = "x-d"; then
|
|
||||||
DEBUG=--enable-debug
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ask root permissions at the start
|
# Ask root permissions at the start
|
||||||
sudo echo We are root
|
sudo echo We are root
|
||||||
|
|
||||||
|
|
@ -20,7 +9,7 @@ make distclean
|
||||||
# Reconfigure (with force) to get the latest revision from git
|
# Reconfigure (with force) to get the latest revision from git
|
||||||
autoreconf -f
|
autoreconf -f
|
||||||
|
|
||||||
if ! ./configure.windows-x86 $DEBUG; then
|
if ! ./configure.windows-x86; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -32,11 +21,11 @@ if ! make distwindows-x86 distclean; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! ./configure.windows-x64 $DEBUG; then
|
if ! ./configure.windows-x64; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! make -j4 $CHECK; then
|
if ! make -j4; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue