Magellan Linux

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

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

revision 1779 by niro, Wed Dec 28 12:23:50 2011 UTC revision 1780 by niro, Mon Mar 12 23:21:12 2012 UTC
# Line 69  print_usage() Line 69  print_usage()
69   echo "    clean           - removes *all* downloaded packages"   echo "    clean           - removes *all* downloaded packages"
70   echo "    unpack          - unpacks *all* needed package for 'foo'"   echo "    unpack          - unpacks *all* needed package for 'foo'"
71   echo "    download        - downloads *all* needed packages for 'foo'"   echo "    download        - downloads *all* needed packages for 'foo'"
72     echo "    print-features  - prints all enabled mage-features"
73   echo "    version         - prints version info"   echo "    version         - prints version info"
74   echo "    regen-mage-tree - regenerates the whole mage database (for devs only)"   echo "    regen-mage-tree - regenerates the whole mage database (for devs only)"
75   echo   echo
# Line 97  METHOD="$1" Line 98  METHOD="$1"
98  # initial unversionized packagename, gets overridden later on  # initial unversionized packagename, gets overridden later on
99  MAGENAME="$2"  MAGENAME="$2"
100    
101  if [[ ${METHOD} != upgrade ]] && \  if [[ ${METHOD} != upgrade ]] &&
102   [[ ${METHOD} != srcupgrade ]] && \   [[ ${METHOD} != srcupgrade ]] &&
103   [[ ${METHOD} != uppretend ]] && \   [[ ${METHOD} != uppretend ]] &&
104   [[ ${METHOD} != srcuppretend ]] && \   [[ ${METHOD} != srcuppretend ]] &&
105   [[ ${METHOD} != update ]] && \   [[ ${METHOD} != update ]] &&
106   [[ ${METHOD} != update-tarball ]] && \   [[ ${METHOD} != update-tarball ]] &&
107   [[ ${METHOD} != clean ]] && \   [[ ${METHOD} != clean ]] &&
108   [[ ${METHOD} != version ]] && \   [[ ${METHOD} != version ]] &&
109   [[ ${METHOD} != search ]] && \   [[ ${METHOD} != search ]] &&
110   [[ ${METHOD} != regen-mage-tree ]]   [[ ${METHOD} != regen-mage-tree ]] &&
111     [[ ${METHOD} != print-features ]]
112  then  then
113   [[ -z ${METHOD} ]] || [[ -z ${MAGENAME} ]] && print_usage && exit 1   [[ -z ${METHOD} ]] || [[ -z ${MAGENAME} ]] && print_usage && exit 1
114  fi  fi
# Line 429  case ${METHOD} in Line 431  case ${METHOD} in
431   done   done
432   ;;   ;;
433    
434     print-features)
435     mprintfeatures
436     ;;
437    
438   *)   *)
439   print_usage   print_usage
440   ;;   ;;

Legend:
Removed from v.1779  
changed lines
  Added in v.1780