Magellan Linux

Diff of /branches/mage-next/src/sql/meta-generator.sh

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

revision 2287 by niro, Fri Dec 6 09:08:31 2013 UTC revision 2290 by niro, Fri Dec 6 09:29:41 2013 UTC
# Line 73  COLDEFAULT="\033[0m" Line 73  COLDEFAULT="\033[0m"
73  [ -f /etc/mage.rc.global ] && source /etc/mage.rc.global || die "/etc/mage.rc.global missing"  [ -f /etc/mage.rc.global ] && source /etc/mage.rc.global || die "/etc/mage.rc.global missing"
74  [ -f ${MAGERC} ] && source ${MAGERC} || die "Your ${MAGERC} is missing. Aborting."  [ -f ${MAGERC} ] && source ${MAGERC} || die "Your ${MAGERC} is missing. Aborting."
75  [ -f ${MLIBDIR}/mage4.functions.sh ] && source ${MLIBDIR}/mage4.functions.sh || die "mage functions missing"  [ -f ${MLIBDIR}/mage4.functions.sh ] && source ${MLIBDIR}/mage4.functions.sh || die "mage functions missing"
76    [ -f ${MLIBDIR}/smage2.functions.sh ] && source ${MLIBDIR}/smage2.functions.sh || die "mage functions missing"
77    
78  # default variables  # default variables
79  PKGTARBALL=""  PKGTARBALL=""
# Line 91  do Line 92  do
92  done  done
93    
94  SMAGEFILE="$1"  SMAGEFILE="$1"
95    [ -z ${SMAGEFILE} ] && die "No smage file given."
96    [ -e ${SMAGEFILE} ] || die "Smage file '${SMAGEFILE}' does not exist."
97    
98  if [[ -n ${PKGTARBALL} ]]  if [[ -n ${PKGTARBALL} ]]
99  then  then
# Line 110  then Line 113  then
113  fi  fi
114    
115  # get generic package information from smage file  # get generic package information from smage file
116  source ${SMAGEFILE}  smagesource ${SMAGEFILE}
117    
118  # set the right meta-location  # set the right meta-location
119  [[ ! -d ${METADIR} ]] && install -d ${METADIR}  [[ ! -d ${METADIR} ]] && install -d ${METADIR}

Legend:
Removed from v.2287  
changed lines
  Added in v.2290