[Lunar-commits] CVS: theedge/bin lvu,1.62,1.63

Auke Kok sofar at lunar-linux.org
Wed Mar 23 08:42:56 UTC 2005


Update of /var/cvs/lunar/theedge/bin
In directory espresso.foo-projects.org:/home/sofar/active/theedge/bin

Modified Files:
	lvu 
Log Message:
Wanna get nitpicking? eat this!


Index: lvu
===================================================================
RCS file: /var/cvs/lunar/theedge/bin/lvu,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- lvu	23 Mar 2005 00:23:55 -0000	1.62
+++ lvu	23 Mar 2005 08:42:53 -0000	1.63
@@ -89,7 +89,7 @@
 moonbase                   display text listing of the moonbase
 html                       display html listing of the moonbase
 updatelog                  display summary log of previous lunar update
-activity                   display main log file
+activity    [module]       display main log file
 
 newer       20030801       display available modules newer than Aug 01, 2003
 older       20030101       display modules installed before Jan 01, 2003
@@ -718,7 +718,7 @@
     fi
  
     echo ""
-    ACTIVITY="`view_file $ACTIVITY_LOG | grep "[	 ]${1}[	 ]"`"
+	ACTIVITY=$(view_file $ACTIVITY_LOG | awk "(\$3 == \"$1\")")
    
     if [ `echo "$ACTIVITY" | wc -l` -gt 10 ]; then
       ACTIVITY="`echo "$ACTIVITY" | tail -n10`"
@@ -795,7 +795,11 @@
 
     activity)
       if [ -e $ACTIVITY_LOG ]; then
-        view_file $ACTIVITY_LOG
+        if [ -z "$2" ]; then
+          view_file $ACTIVITY_LOG
+        else
+         view_file $ACTIVITY_LOG | awk "(\$3 == \"$2\")"
+       fi
       else
         echo "No update log available."
       fi



More information about the Lunar-commits mailing list