CVS: theedge/bin lvu,1.34,1.35

elaine at lunar-linux.org elaine at lunar-linux.org
Thu Sep 11 05:09:52 GMT 2003


Update of /var/cvs/lunar/theedge/bin
In directory dbguin.lunar-linux.org:/tmp/cvs-serv4895/bin

Modified Files:
	lvu 
Log Message:
Initial versioning support for lunar, where versions are either 
version-aware modules or subdirectories of the primary module.


Index: lvu
===================================================================
RCS file: /var/cvs/lunar/theedge/bin/lvu,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- lvu	8 Aug 2003 04:16:24 -0000	1.34
+++ lvu	11 Sep 2003 05:09:50 -0000	1.35
@@ -659,8 +659,9 @@
       ;;
 	  
     md5sum)
+      mv_edit $2
       if [ -n "$2" ] ; then
-        if ! md5sum_files "$INSTALL_LOGS/$2-$(installed_version $2)" ; then
+        if ! md5sum_files "$INSTALL_LOGS/$MOD_V_SNAME-$(installed_version $2)" ; then
 	  md5sum_files  "$INSTALL_LOGS/*"
         fi
       fi
@@ -780,7 +781,21 @@
 	fi
       fi
       ;;
-      
+
+    versions)
+      if [ -n "$2" ] ; then
+        if run_details $2 ; then
+  	  echo "main-version $VERSION"
+	fi
+	for i in $MOONBASE/*/$2/*/DETAILS ; do
+	  x=`echo $i | sed 's:/DETAILS::'`
+	  run_details $2/`basename $x`
+	  echo "alt-version  $VERSION"
+	done
+
+      fi
+      ;;
+
     size)
       if [ -z "$2" ] ; then
         MODULES=$(cat $MODULE_STATUS | cut -d: -f1 | sort)
@@ -806,20 +821,22 @@
       ;;
 
     compile)
-      if run_details $2 ; then
-        if [ -f $COMPILE_LOGS/$2-$(lvu version $2).bz2 ] ; then
-          view_file $COMPILE_LOGS/$2-$(lvu version $2).bz2
+      mv_edit $2
+      run_details $2 ; 
+        if [ -f $COMPILE_LOGS/$MOD_V_SNAME-$(lvu version $2).bz2 ] ; then
+          view_file $COMPILE_LOGS/$MOD_V_SNAME-$(lvu version $2).bz2
         else
           VERSION=$(installed_version $2)
-          view_file $COMPILE_LOGS/$2-$(installed_version $2).bz2 \
+          view_file $COMPILE_LOGS/$MOD_V_SNAME-$(installed_version $2).bz2 \
              "Compile log for $2 does not exist"
         fi
-      fi
+      #fi
       ;;
 	      
    install)
+     mv_edit $2
      if run_details $2 ; then
-       view_file $INSTALL_LOGS/$2-$(installed_version $2) \
+       view_file $INSTALL_LOGS/$MOD_V_SNAME-$(installed_version $2) \
            "Install log for $2 does not exist"
      fi
      ;;




More information about the Lunar-commits mailing list