2 |
|
|
3 |
BUILDSERVER_CACHE_DIR="/var/cache/mage-buildserver" |
BUILDSERVER_CACHE_DIR="/var/cache/mage-buildserver" |
4 |
SMAGEFILE="$1" |
SMAGEFILE="$1" |
5 |
|
LINT_CHECKS=1 |
6 |
|
|
7 |
if [ -f /etc/rc.d/init.d/functions ] |
if [ -f /etc/rc.d/init.d/functions ] |
8 |
then |
then |
163 |
then |
then |
164 |
build_retval=0 |
build_retval=0 |
165 |
echo 0 > ${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/BUILD_OK |
echo 0 > ${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/BUILD_OK |
166 |
|
# remove maybe existing failed file |
167 |
|
if [ -f ${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/BUILD_FAILED ] |
168 |
|
then |
169 |
|
rm ${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/BUILD_FAILED |
170 |
|
fi |
171 |
echo "Build successfull!" |
echo "Build successfull!" |
172 |
regen_mage_tree |
regen_mage_tree |
173 |
# restore STATE |
# restore STATE |
174 |
STATE="${BUILDSERVER_SAVED_STATE}" |
STATE="${BUILDSERVER_SAVED_STATE}" |
175 |
|
if [[ ${LINT_CHECKS} = 1 ]] |
176 |
|
then |
177 |
|
/usr/lib/mage-buildserver/buildserver-lint.sh ${SMAGEFILE} |
178 |
|
fi |
179 |
if install_packages ${SRC_INSTALL_DEPS} || die "installing packages" |
if install_packages ${SRC_INSTALL_DEPS} || die "installing packages" |
180 |
then |
then |
181 |
install_retval=0 |
install_retval=0 |