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 |
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 |
431 |
done |
done |
432 |
;; |
;; |
433 |
|
|
434 |
|
print-features) |
435 |
|
mprintfeatures |
436 |
|
;; |
437 |
|
|
438 |
*) |
*) |
439 |
print_usage |
print_usage |
440 |
;; |
;; |