Magellan Linux

Diff of /branches/mage-next/usr/lib/mage/meta-generator.sh

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

revision 2293 by niro, Fri Dec 6 09:43:35 2013 UTC revision 2296 by niro, Fri Dec 6 09:49:44 2013 UTC
# Line 95  SMAGEFILE="$1" Line 95  SMAGEFILE="$1"
95  [ -z ${SMAGEFILE} ] && die "No smage file given."  [ -z ${SMAGEFILE} ] && die "No smage file given."
96  [ -e ${SMAGEFILE} ] || die "Smage file '${SMAGEFILE}' does not exist."  [ -e ${SMAGEFILE} ] || die "Smage file '${SMAGEFILE}' does not exist."
97    
98  PKGNAME="${PNAME}-${PVER}-${PBUILD}"  # load mage-features
99  ARCHPKGNAME="${PNAME}-${PVER}-${ARCH}$(distrotag)-${PBUILD}"  load_mage_features
100    
101  if [[ -n ${PKGTARBALL} ]]  if [[ -n ${PKGTARBALL} ]]
102  then  then
# Line 118  fi Line 118  fi
118  # get generic package information from smage file  # get generic package information from smage file
119  smagesource ${SMAGEFILE}  smagesource ${SMAGEFILE}
120    
121    PKGNAME="${PNAME}-${PVER}-${PBUILD}"
122    ARCHPKGNAME="${PNAME}-${PVER}-${ARCH}$(print_distrotag)-${PBUILD}"
123    
124  # set the right meta-location  # set the right meta-location
125  [[ ! -d ${METADIR} ]] && install -d ${METADIR}  [[ ! -d ${METADIR} ]] && install -d ${METADIR}
126  METAFILE="${METADIR}/${ARCHPKGNAME}.${METASUFFIX}"  METAFILE="${METADIR}/${ARCHPKGNAME}.${METASUFFIX}"

Legend:
Removed from v.2293  
changed lines
  Added in v.2296