Magellan Linux

Diff of /trunk/mage/usr/lib/mage/smage2.sh

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

revision 1594 by niro, Thu Dec 29 15:21:25 2011 UTC revision 1595 by niro, Thu Dec 29 15:23:21 2011 UTC
# Line 1509  echo Line 1509  echo
1509  if mqueryfeature "!compressdoc"  if mqueryfeature "!compressdoc"
1510  then  then
1511   echo -e "!compressdoc detected; documentation will not be compressed ..."   echo -e "!compressdoc detected; documentation will not be compressed ..."
1512    elif mqueryfeature "!pkgbuild"
1513    then
1514     echo "!pkgbuild detected; skipping documentation compression..."
1515  else  else
1516   # compressing doc, info & man files   # compressing doc, info & man files
1517   if [[ -n ${SPLIT_PACKAGES} ]]   if [[ -n ${SPLIT_PACKAGES} ]]
# Line 1524  fi Line 1527  fi
1527    
1528  if mqueryfeature "!libtool"  if mqueryfeature "!libtool"
1529  then  then
1530     if mqueryfeature "!pkgbuild"
1531     then
1532     echo "!pkgbuild detected; skipping libtool archive stripping ..."
1533     else
1534   if [[ -n ${SPLIT_PACKAGES} ]]   if [[ -n ${SPLIT_PACKAGES} ]]
1535   then   then
1536   for subpackage in ${SPLIT_PACKAGES}   for subpackage in ${SPLIT_PACKAGES}
# Line 1535  then Line 1542  then
1542   echo -e "${COLBLUE}===${COLGREEN} stripping libtool archives ...${COLDEFAULT}"   echo -e "${COLBLUE}===${COLGREEN} stripping libtool archives ...${COLDEFAULT}"
1543   mstriplibtoolarchive ${BINDIR}   mstriplibtoolarchive ${BINDIR}
1544   fi   fi
1545     fi
1546  fi  fi
1547    
1548  if mqueryfeature "purge"  if mqueryfeature "purge"
1549  then  then
1550     if mqueryfeature "!pkgbuild"
1551     then
1552     echo "!pkgbuild detected; skipping file purgation..."
1553     else
1554   if [[ -n ${SPLIT_PACKAGES} ]]   if [[ -n ${SPLIT_PACKAGES} ]]
1555   then   then
1556   for subpackage in ${SPLIT_PACKAGES}   for subpackage in ${SPLIT_PACKAGES}
# Line 1550  then Line 1562  then
1562   echo -e "${COLBLUE}===${COLGREEN} purging all purge targets ...${COLDEFAULT}"   echo -e "${COLBLUE}===${COLGREEN} purging all purge targets ...${COLDEFAULT}"
1563   mpurgetargets ${BINDIR}   mpurgetargets ${BINDIR}
1564   fi   fi
1565     fi
1566  fi  fi
1567    
1568  # stripping all bins and libs  # stripping all bins and libs
1569  if mqueryfeature "!strip"  if mqueryfeature "!strip"
1570  then  then
1571   echo -e "!strip detected; Package will not be stripped ..."   echo -e "!strip detected; Package will not be stripped ..."
1572    elif mqueryfeature "!pkgbuild"
1573    then
1574     echo "!pkgbuild detected; skipping stripping of the package ..."
1575  else  else
1576   if [[ -n ${SPLIT_PACKAGES} ]]   if [[ -n ${SPLIT_PACKAGES} ]]
1577   then   then
1578   for subpackage in ${SPLIT_PACKAGES}   for subpackage in ${SPLIT_PACKAGES}
1579   do   do
1580   echo -e "${COLBLUE}===${COLGREEN} stripping binaries for '${subpackage}' ...${COLDEFAULT}"   echo -e "${COLBLUE}===${COLGREEN} stripping binaries for '${subpackage}' ...${COLDEFAULT}"
1581   mstripbins ${BINDIR}_${subpackage}   mstripbins ${BINDIR}_${subpackage}
1582   echo -e "${COLBLUE}===${COLGREEN} stripping dynamic libraries for '${subpackage}' ...${COLDEFAULT}"   echo -e "${COLBLUE}===${COLGREEN} stripping dynamic libraries for '${subpackage}' ...${COLDEFAULT}"
1583   mstriplibs ${BINDIR}_${subpackage}   mstriplibs ${BINDIR}_${subpackage}
1584   echo -e "${COLBLUE}===${COLGREEN} stripping static libraries for '${subpackage}' ...${COLDEFAULT}"   echo -e "${COLBLUE}===${COLGREEN} stripping static libraries for '${subpackage}' ...${COLDEFAULT}"
1585   mstripstatic ${BINDIR}_${subpackage}   mstripstatic ${BINDIR}_${subpackage}
1586   done   done
1587   else   else
1588   echo -e "${COLBLUE}===${COLGREEN} stripping binaries ...${COLDEFAULT}"   echo -e "${COLBLUE}===${COLGREEN} stripping binaries ...${COLDEFAULT}"
1589   mstripbins ${BINDIR}   mstripbins ${BINDIR}
1590   echo -e "${COLBLUE}===${COLGREEN} stripping dynamic libraries ...${COLDEFAULT}"   echo -e "${COLBLUE}===${COLGREEN} stripping dynamic libraries ...${COLDEFAULT}"
1591   mstriplibs ${BINDIR}   mstriplibs ${BINDIR}
1592   echo -e "${COLBLUE}===${COLGREEN} stripping static libraries ...${COLDEFAULT}"   echo -e "${COLBLUE}===${COLGREEN} stripping static libraries ...${COLDEFAULT}"
1593   mstripstatic ${BINDIR}   mstripstatic ${BINDIR}
1594   fi   fi
1595  fi  fi
1596    
1597  if mqueryfeature "!buildpkg"  if mqueryfeature "!pkgbuild"
1598  then  then
1599   echo -e "!buildpkg detected; Package will not be build ..."   echo -e "!pkgbuild detected; Package will not be build ..."
1600  else  else
1601   # build several targets   # build several targets
1602   if [[ -n ${MAGE_TARGETS} ]]   if [[ -n ${MAGE_TARGETS} ]]
# Line 1620  else Line 1636  else
1636   export PNAME="${subpackage}"   export PNAME="${subpackage}"
1637   split_info_${PNAME}   split_info_${PNAME}
1638    
1639   # jump to next one if !buildpkg is set in split_info   # jump to next one if !pkgbuild is set in split_info
1640   mqueryfeature "!buildpkg" && continue   mqueryfeature "!pkgbuild" && continue
1641    
1642   # check if an special subpackage_pkgbuild exists   # check if an special subpackage_pkgbuild exists
1643   if typeset -f ${PNAME}_pkgbuild > /dev/null   if typeset -f ${PNAME}_pkgbuild > /dev/null

Legend:
Removed from v.1594  
changed lines
  Added in v.1595