Minor build system tweaks.
Signed-off-by: Jan Vidar Krey <janvidar@extatic.org>
This commit is contained in:
parent
74af392e80
commit
9186b441aa
|
@ -7,16 +7,17 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BINSUFFIX=
|
BINSUFFIX=
|
||||||
|
MAKEARGS=
|
||||||
|
MAKE=make
|
||||||
|
WANTZIP=0
|
||||||
|
|
||||||
if [ "${HOST_SYSTEM}" = "mingw32_nt-5.1" ]; then
|
if [ "${HOST_SYSTEM}" = "mingw32_nt-5.1" ]; then
|
||||||
HOST_SYSTEM=win32
|
HOST_SYSTEM=win32
|
||||||
BINSUFFIX=.exe
|
BINSUFFIX=.exe
|
||||||
WANTZIP=1
|
WANTZIP=1
|
||||||
else
|
MAKEARGS="USE_BIGENDIAN=NO"
|
||||||
WANTZIP=0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MAKE=make
|
|
||||||
BINARY=uhub${BINSUFFIX}
|
BINARY=uhub${BINSUFFIX}
|
||||||
|
|
||||||
if [ "${HOST_SYSTEM}" = "FreeBSD" ]; then
|
if [ "${HOST_SYSTEM}" = "FreeBSD" ]; then
|
||||||
|
@ -58,7 +59,7 @@ function package_zips
|
||||||
gzip -c -9 $1.tar > $1.tar.gz
|
gzip -c -9 $1.tar > $1.tar.gz
|
||||||
bzip2 -c -9 $1.tar > $1.tar.bz2
|
bzip2 -c -9 $1.tar > $1.tar.bz2
|
||||||
rm -f $1.tar
|
rm -f $1.tar
|
||||||
|
|
||||||
if [ $WANTZIP -eq 1 ]; then
|
if [ $WANTZIP -eq 1 ]; then
|
||||||
zip -q -9 -r $1.zip $2
|
zip -q -9 -r $1.zip $2
|
||||||
fi
|
fi
|
||||||
|
@ -71,10 +72,10 @@ function export_sources
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ${PACKAGE}
|
cd ${PACKAGE}
|
||||||
${MAKE} autotest.c
|
${MAKE} ${MAKEARGS} autotest.c
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
if [ -f ${PACKAGE}/autotest.c ]; then
|
if [ ! -f ${PACKAGE}/autotest.c ]; then
|
||||||
echo "Unable to create autotest.c, aborting..."
|
echo "Unable to create autotest.c, aborting..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -93,7 +94,7 @@ function export_binaries
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ${PACKAGE}
|
cd ${PACKAGE}
|
||||||
${MAKE} RELEASE=YES
|
${MAKE} ${MAKEARGS} RELEASE=YES
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
if [ ! -x ${PACKAGE}/${BINARY} ]; then
|
if [ ! -x ${PACKAGE}/${BINARY} ]; then
|
||||||
|
|
Loading…
Reference in New Issue