Magellan Linux

Diff of /branches/mage-next/src/smage2.in

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

revision 2631 by niro, Mon Mar 10 12:15:30 2014 UTC revision 2806 by niro, Tue Sep 2 13:55:19 2014 UTC
# Line 300  fi Line 300  fi
300  smagesource ${SMAGENAME} || die "source failed"  smagesource ${SMAGENAME} || die "source failed"
301  PKGNAME="${PNAME}-${PVER}-${ARCH}$(print_distrotag)-${PBUILD}"  PKGNAME="${PNAME}-${PVER}-${ARCH}$(print_distrotag)-${PBUILD}"
302  MD5DIR="$(dirname ${SMAGENAME})/md5"  MD5DIR="$(dirname ${SMAGENAME})/md5"
303  SMAGE_LOG_CMD="tee -a /var/log/smage/${PKGNAME}.log"  SMAGE_LOG_CMD="tee -a ${SMAGELOGDIR}/${PKGNAME}.log"
304    
305  xtitle "Compiling ${PKGNAME}"  xtitle "Compiling ${PKGNAME}"
306  echo -e "${COLGREEN}Compiling ${PKGNAME}${COLDEFAULT}"  echo -e "${COLGREEN}Compiling ${PKGNAME}${COLDEFAULT}"
# Line 318  fi Line 318  fi
318  mqueryfeature "srcpkgtarball" || download_sources  mqueryfeature "srcpkgtarball" || download_sources
319    
320  # fixes some issues with these functions  # fixes some issues with these functions
321    export -f pkg_setup || die "pkg_setup export failed"
322  export -f src_prepare || die "src_prepare export failed"  export -f src_prepare || die "src_prepare export failed"
323  export -f src_compile || die "src_compile export failed"  export -f src_compile || die "src_compile export failed"
324  export -f src_check || die "src_check export failed"  export -f src_check || die "src_check export failed"
# Line 352  then Line 353  then
353   echo -e "${COLMAGENTA}Resume requested; continuing previous build${COLDEFAULT}"   echo -e "${COLMAGENTA}Resume requested; continuing previous build${COLDEFAULT}"
354    
355   # setup build logging   # setup build logging
356   [[ ! -d /var/log/smage ]] && install -d /var/log/smage   [[ ! -d ${SMAGELOGDIR} ]] && install -d ${SMAGELOGDIR}
357   if [[ -f /var/log/smage/${PKGNAME}.log.bz2 ]]   if [[ -f ${SMAGELOGDIR}/${PKGNAME}.log.bz2 ]]
358   then   then
359   bunzip2 -f /var/log/smage/${PKGNAME}.log.bz2   bunzip2 -f ${SMAGELOGDIR}/${PKGNAME}.log.bz2
360   fi   fi
361   echo -e "### Resume started on $(date) ###\n" >> /var/log/smage/${PKGNAME}.log   echo -e "### Resume started on $(date) ###\n" >> ${SMAGELOGDIR}/${PKGNAME}.log
362    
363  else  else
364   # clean up builddir if a previously one exist   # clean up builddir if a previously one exist
# Line 393  else Line 394  else
394   fi   fi
395    
396   # setup build logging   # setup build logging
397   [[ ! -d /var/log/smage ]] && install -d /var/log/smage   [[ ! -d ${SMAGELOGDIR} ]] && install -d ${SMAGELOGDIR}
398   echo -e "### Build started on $(date) ###\n" > /var/log/smage/${PKGNAME}.log   echo -e "### Build started on $(date) ###\n" > ${SMAGELOGDIR}/${PKGNAME}.log
399  fi  fi
400    
401  if [[ ${PKGTYPE} = virtual ]]  if [[ ${PKGTYPE} = virtual ]]
# Line 403  then Line 404  then
404   # automatically set !pkgbuild here too   # automatically set !pkgbuild here too
405   msetfeature "!pkgbuild"   msetfeature "!pkgbuild"
406  else  else
407     ( run_resume pkg_setup || pkg_setup ) | ${SMAGE_LOG_CMD}
408     die_pipestatus 0 "pkg_setup failed"
409     resume_stamp pkg_setup
410     step_by_step pkg_setup
411    
412   ( run_resume src_prepare || src_prepare ) | ${SMAGE_LOG_CMD}   ( run_resume src_prepare || src_prepare ) | ${SMAGE_LOG_CMD}
413   die_pipestatus 0 "src_prepare failed"   die_pipestatus 0 "src_prepare failed"
414   resume_stamp src_prepare   resume_stamp src_prepare
# Line 807  regen_mage_tree Line 813  regen_mage_tree
813    
814  if mqueryfeature "buildlog"  if mqueryfeature "buildlog"
815  then  then
816   bzip2 -9f /var/log/smage/${PKGNAME}.log   bzip2 -9f ${SMAGELOGDIR}/${PKGNAME}.log
817  else  else
818   [[ -f /var/log/smage/${PKGNAME}.log ]] && rm /var/log/smage/${PKGNAME}.log   [[ -f ${SMAGELOGDIR}/${PKGNAME}.log ]] && rm ${SMAGELOGDIR}/${PKGNAME}.log
819  fi  fi
820    
821  xtitleclean  xtitleclean

Legend:
Removed from v.2631  
changed lines
  Added in v.2806