Magellan Linux

Diff of /trunk/mage-buildserver/helper/buildserver-build.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2765 by niro, Thu Aug 28 08:20:03 2014 UTC revision 2767 by niro, Thu Aug 28 08:22:31 2014 UTC
# Line 2  Line 2 
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
# Line 162  if smage2 --src-tarball ${TARGET_SRC_TAR Line 163  if smage2 --src-tarball ${TARGET_SRC_TAR
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

Legend:
Removed from v.2765  
changed lines
  Added in v.2767