1 |
#!/bin/bash |
#!/bin/bash |
2 |
# Magellan Linux Installer Functions (mage.functions.sh) |
# Magellan Linux Installer Functions (mage.functions.sh) |
3 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh,v 1.21 2006-07-17 20:52:38 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh,v 1.23 2006-12-30 11:39:32 niro Exp $ |
4 |
|
|
5 |
mage_setup() |
mage_setup() |
6 |
{ |
{ |
1708 |
{ |
{ |
1709 |
local i |
local i |
1710 |
|
|
1711 |
if [ -n "$@" ] |
if [[ -n $@ ]] |
1712 |
then |
then |
1713 |
for i in $@ |
for i in $@ |
1714 |
do |
do |
2530 |
local ipbuild |
local ipbuild |
2531 |
|
|
2532 |
# only names no versions |
# only names no versions |
2533 |
result="$(find ${MAGEDIR} -mindepth 2 -maxdepth 2 -type d -name '*'${string}'*')" |
result="$(find ${MAGEDIR} -mindepth 2 -maxdepth 2 -type d -name '*'${string}'*'| sed '/profiles/d' | sed '/includes/d')" |
2534 |
#result="$(find ${MAGEDIR} -type f -name '*'${string}'*'.mage | sort)" |
#result="$(find ${MAGEDIR} -type f -name '*'${string}'*'.mage | sort)" |
2535 |
|
|
2536 |
# nothing found |
# nothing found |