Stop in case of error.
Signed-off-by: Jan Vidar Krey <janvidar@extatic.org>
This commit is contained in:
parent
3a270564d2
commit
74af392e80
|
@ -72,8 +72,13 @@ function export_sources
|
||||||
|
|
||||||
cd ${PACKAGE}
|
cd ${PACKAGE}
|
||||||
${MAKE} autotest.c
|
${MAKE} autotest.c
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
if [ -f ${PACKAGE}/autotest.c ]; then
|
||||||
|
echo "Unable to create autotest.c, aborting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
rm -Rf ${PACKAGE}/admin
|
rm -Rf ${PACKAGE}/admin
|
||||||
package_zips ${PACKAGE_SRC} ${PACKAGE}
|
package_zips ${PACKAGE_SRC} ${PACKAGE}
|
||||||
|
|
||||||
|
@ -89,14 +94,13 @@ function export_binaries
|
||||||
|
|
||||||
cd ${PACKAGE}
|
cd ${PACKAGE}
|
||||||
${MAKE} RELEASE=YES
|
${MAKE} RELEASE=YES
|
||||||
|
cd ..
|
||||||
|
|
||||||
if [ ! -x ${BINARY} ]; then
|
if [ ! -x ${PACKAGE}/${BINARY} ]; then
|
||||||
echo "Packaging failed, no binary found..."
|
echo "Packaging failed, no binary found..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
rm -Rf ${PACKAGE}/admin
|
rm -Rf ${PACKAGE}/admin
|
||||||
rm -Rf ${PACKAGE}/autotest
|
rm -Rf ${PACKAGE}/autotest
|
||||||
rm -Rf ${PACKAGE}/src
|
rm -Rf ${PACKAGE}/src
|
||||||
|
@ -108,7 +112,6 @@ function export_binaries
|
||||||
rm -f ${PACKAGE}/doc/uhub.dot
|
rm -f ${PACKAGE}/doc/uhub.dot
|
||||||
rm -f ${PACKAGE}/libuhub*
|
rm -f ${PACKAGE}/libuhub*
|
||||||
|
|
||||||
|
|
||||||
package_zips ${PACKAGE_BIN} ${PACKAGE}
|
package_zips ${PACKAGE_BIN} ${PACKAGE}
|
||||||
|
|
||||||
rm -Rf ${PACKAGE};
|
rm -Rf ${PACKAGE};
|
||||||
|
|
Loading…
Reference in New Issue