CVS: theedge/bin lvu,1.30,1.31
sofar at lunar-linux.org
sofar at lunar-linux.org
Sun Jul 20 15:34:38 GMT 2003
Update of /var/cvs/lunar/theedge/bin
In directory dbguin.lunar-linux.org:/tmp/cvs-serv3593/bin
Modified Files:
lvu
Log Message:
Fixing lvu search bug, adding full support for svn:// urls, see moonbase/zbeta dor 2 example modules that use svn:// URL's.
Index: lvu
===================================================================
RCS file: /var/cvs/lunar/theedge/bin/lvu,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- lvu 17 Jul 2003 23:31:59 -0000 1.30
+++ lvu 20 Jul 2003 15:34:36 -0000 1.31
@@ -325,12 +325,6 @@
}
-show_from() {
- cd $INSTALL_LOGS
- grep $1 *
-}
-
-
show_module_component() {
COMPONENT=$1
MODULE=$2
@@ -341,26 +335,6 @@
}
-long_search() {
- for MODULE in $(list_moonbase) ; do
- (
- run_details $MODULE | grep -q -i "$1" &&
- echo "$SECTION/$MODULE"
- )
- done
-}
-
-
-service() {
- for MODULE in $(list_moonbase) ; do
- if [ -f $MOONBASE/$SECTION/$MODULE/services ] &&
- grep -q -i "$1" $MOONBASE/$SECTION/$MODULE/services ; then
- echo "$SECTION/$MODULE"
- fi
- done
-}
-
-
find_lining() {
for FILE in $(ls /var/lock/lining* 2>/dev/null); do
if ps $(cat $FILE 2>/dev/null) | grep -q lin; then
@@ -613,7 +587,8 @@
;;
from)
- show_from $2
+ cd $INSTALL_LOGS
+ grep $2 *
;;
newer)
@@ -755,11 +730,25 @@
;;
search)
- long_search "$2"
+ for SECTION in $(list_sections) ; do
+ for MODULE in $(list_modules $SECTION) ; do
+ (
+ run_module_file $MODULE DETAILS | grep -q -i "$2" &&
+ echo "$SECTION/$MODULE"
+ )
+ done
+ done
;;
service)
- service "$2"
+ for SECTION in $(list_sections) ; do
+ for MODULE in $(list_modules $SECTION) ; do
+ if [ -f $MOONBASE/$SECTION/$MODULE/services ] &&
+ grep -q -i "$2" $MOONBASE/$SECTION/$MODULE/services ; then
+ echo "$SECTION/$MODULE"
+ fi
+ done
+ done
;;
depends)
More information about the Lunar-commits
mailing list