Magellan Linux

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

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

revision 597 by niro, Mon Nov 5 16:47:10 2007 UTC revision 859 by niro, Fri May 8 07:06:12 2009 UTC
# Line 4  Line 4 
4  # needs pkgbuild_dir (mage)  # needs pkgbuild_dir (mage)
5    
6  # SMAGE2  # SMAGE2
7  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.59 2007-11-05 16:47:10 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.62 2007-11-28 10:47:50 niro Exp $
8    
9  #01.10.2004  #01.10.2004
10  # added ccache support  # added ccache support
# Line 362  mconfigure() Line 362  mconfigure()
362   ./configure \   ./configure \
363   --prefix=/usr \   --prefix=/usr \
364   --host=${CHOST} \   --host=${CHOST} \
365     --build=${CHOST} \
366   --mandir=/usr/share/man \   --mandir=/usr/share/man \
367   --infodir=/usr/share/info \   --infodir=/usr/share/info \
368   --datadir=/usr/share \   --datadir=/usr/share \
# Line 439  munpack() Line 440  munpack()
440   popd > /dev/null   popd > /dev/null
441   fi   fi
442   ;;   ;;
443   tbz2)   tbz2|mpks|mpk)
444   tar --no-same-owner -xvjf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${DEST} || die ".tbz2 unpack failed."   tar --no-same-owner -xvjf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${DEST} || die ".tbz2 unpack failed."
445   ;;   ;;
446   tgz)   tgz)
# Line 448  munpack() Line 449  munpack()
449   rar)   rar)
450   unrar x ${SOURCEDIR}/${PNAME}/${SRCFILE} ${DEST}  || die ".rar unpack failed."   unrar x ${SOURCEDIR}/${PNAME}/${SRCFILE} ${DEST}  || die ".rar unpack failed."
451   ;;   ;;
452   zip)   zip|xpi)
453   unzip ${SOURCEDIR}/${PNAME}/${SRCFILE} -d ${DEST} || die ".zip unpack failed."   unzip ${SOURCEDIR}/${PNAME}/${SRCFILE} -d ${DEST} || die ".zip unpack failed."
454   ;;   ;;
455   rpm)   rpm)
456   pushd ${BUILDDIR} > /dev/null   pushd ${DEST} > /dev/null
457   rpm2targz ${SOURCEDIR}/${PNAME}/${SRCFILE} || die "rpm2targz: .rpm unpack failed."   rpm2targz ${SOURCEDIR}/${PNAME}/${SRCFILE} || die "rpm2targz: .rpm unpack failed."
458   tar --no-same-owner -xvzf ${SRCFILE/.rpm/.tar.gz/} || die "tar: .rpm unpack failed."   tar --no-same-owner -xvzf ${SRCFILE/.rpm/.tar.gz} || die "tar: .rpm unpack failed."
459   [[ -f ${BUILDDIR}/${SRCFILE/.rpm/.tar.gz/} ]] && rm ${BUILDDIR}/${SRCFILE/.rpm/.tar.gz/}   if [[ -f ${DEST}/${SRCFILE/.rpm/.tar.gz} ]]
460     then
461     rm ${DEST}/${SRCFILE/.rpm/.tar.gz}
462     fi
463   ;;   ;;
464   *)   *)
465   die "munpack failed"   die "munpack failed"
# Line 647  EOF Line 651  EOF
651  # special tags:  # special tags:
652  #   PKGTYPE               type of pkg  #   PKGTYPE               type of pkg
653  #   INHERITS              which functions get included  #   INHERITS              which functions get included
654  #   SPECIAL_FUNCTIONS     special functions wich should also be added  #   SPECIAL_FUNCTIONS     special functions which should also be added
655  #                         warning: they get killed before the build starts !  #                         warning: they get killed before the build starts !
656  #  #
657  #   MAGE_TREE_DEST        target destination of the generated tree  #   MAGE_TREE_DEST        target destination of the generated tree
# Line 683  build_mage_script() Line 687  build_mage_script()
687   > ${dest}   > ${dest}
688    
689   # header   # header
690   echo '# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.59 2007-11-05 16:47:10 niro Exp $' >> ${dest}   echo '# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.62 2007-11-28 10:47:50 niro Exp $' >> ${dest}
691   echo  >> ${dest}   echo  >> ${dest}
692    
693   # pgkname and state   # pgkname and state
# Line 933  source_pkg_build() Line 937  source_pkg_build()
937   echo -e "${COLGREEN}Source package ${COLBLUE}${PNAME}-${PVER}-${PBUILD}.${SRCPKGSUFFIX} ${COLGREEN}successfully builded.${COLDEFAULT}"   echo -e "${COLGREEN}Source package ${COLBLUE}${PNAME}-${PVER}-${PBUILD}.${SRCPKGSUFFIX} ${COLGREEN}successfully builded.${COLDEFAULT}"
938  }  }
939    
940    step_by_step()
941    {
942     if [[ ${STEP_BY_STEP} = true ]]
943     then
944     echo "${COLRED}Step-by-step enabled! Paused after $1.${COLDEFAULT}"
945     echo "Press [enter] to continue"
946     read
947     fi
948    }
949    
950    
951  # print out our version  # print out our version
952  showversion  showversion
# Line 1200  then Line 1214  then
1214  fi  fi
1215    
1216  src_prepare || die "src_prepare failed"  src_prepare || die "src_prepare failed"
1217    step_by_step $_
1218  src_compile || die "src_compile failed"  src_compile || die "src_compile failed"
1219    step_by_step $_
1220  src_install || die "src_install failed"  src_install || die "src_install failed"
1221    step_by_step $_
1222    
1223    
1224  # compressing doc, info & man files  # compressing doc, info & man files

Legend:
Removed from v.597  
changed lines
  Added in v.859