Magellan Linux

Diff of /trunk/mage/usr/lib/mage/mage4.functions.sh

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

revision 1649 by niro, Fri Jan 13 21:04:02 2012 UTC revision 1650 by niro, Fri Jan 13 21:05:41 2012 UTC
# Line 1645  xtitleclean() Line 1645  xtitleclean()
1645  }  }
1646    
1647    
1648  # cuts full pathnames or versionized names down to basename  # unused?
1649  choppkgname()  #
1650  {  # # cuts full pathnames or versionized names down to basename
1651   #we want this only if full name was used  # choppkgname()
1652   if [ -n "$(echo ${MAGENAME}|fgrep .mage)" ]  # {
1653   then  # #we want this only if full name was used
1654   #cuts ARCH and PBUILD  # if [ -n "$(echo ${MAGENAME}|fgrep .mage)" ]
1655   #ARCH comes from ${MAGERC}  # then
1656   MAGENAME=$(echo ${MAGENAME} |sed -e "s:-${ARCH}$(print_distrotag)-r*.::g")  # #cuts ARCH and PBUILD
1657    # #ARCH comes from ${MAGERC}
1658    # MAGENAME=$(echo ${MAGENAME} |sed -e "s:-${ARCH}$(print_distrotag)-r*.::g")
1659    #
1660    # #cuts version number
1661    # MAGENAME=$(basename ${MAGENAME%-*} .mage)
1662    # fi
1663    # }
1664    
  #cuts version number  
  MAGENAME=$(basename ${MAGENAME%-*} .mage)  
  fi  
 }  
1665    
1666  # get_categorie $PNAME, returns CATEGORIE  # get_categorie $PNAME, returns CATEGORIE
1667  # $1=pname  # $1=pname

Legend:
Removed from v.1649  
changed lines
  Added in v.1650