[Lunar-commits] r15270 - in lunar: branches/stable/bin trunk/bin

Auke Kok sofar at lunar-linux.org
Mon Jun 6 13:21:28 UTC 2005


Author: sofar
Date: 2005-06-06 13:21:27 +0000 (Mon, 06 Jun 2005)
New Revision: 15270

Modified:
   lunar/branches/stable/bin/lvu
   lunar/trunk/bin/lvu
Log:
Merging yet another lvu submit fix. this one seems to produce proper patch formatted diffs.


Modified: lunar/branches/stable/bin/lvu
===================================================================
--- lunar/branches/stable/bin/lvu	2005-06-06 04:35:49 UTC (rev 15269)
+++ lunar/branches/stable/bin/lvu	2005-06-06 13:21:27 UTC (rev 15270)
@@ -816,14 +816,15 @@
 	  if [ -n "$SECTION" ]; then
 	    diff -Nurb $MOONBASE/$SECTION/$MODULE $MOONBASE/zlocal/$MODULE --exclude ".svn" --exclude "CVS" | sed "s|^\([+-][+-][+-] \)$MOONBASE/[^/]*/|\1|g" | grep -v "^diff "
 	  else
-        cd $SCRIPT_DIRECTORY
-        for FILE in $(find * -type f | grep -v -e 'CVS/' -e '\.svn/'); do
-		  echo "--- $MODULE/$FILE"
-		  echo "+++ $MODULE/$FILE"
-		  echo "@@ -0,0 +1,$(wc -l $FILE| echo) @@"
-          cat $FILE | sed 's|^|+|g'
-        done
+	    diff -Nurb $MOONBASE/zlocal/.nonexistant $MOONBASE/zlocal/$MODULE --exclude ".svn" --exclude "CVS" | sed "s|^\([+-][+-][+-] \)$MOONBASE/[^/]*/|\1|g" | sed "s|\.nonexistant|$MODULE|g" | grep -v "^diff "
 	  fi
+	  echo -e "\n--$BOUNDARY"
+	  echo 'Content-Type: text/plain; charset="us-ascii"'
+	  echo 'MIME-Version: 1.0'
+	  echo 'Content-Transfer-Encoding: 7bit'
+	  echo ''
+	  echo "lvu submit $1 $(cat /bin/lvu | md5sum)"
+	  echo ''
     ) > $TMP_MSG
     edit_file $TMP_MSG
     cat $TMP_MSG | grep -v '^#'

Modified: lunar/trunk/bin/lvu
===================================================================
--- lunar/trunk/bin/lvu	2005-06-06 04:35:49 UTC (rev 15269)
+++ lunar/trunk/bin/lvu	2005-06-06 13:21:27 UTC (rev 15270)
@@ -816,14 +816,15 @@
 	  if [ -n "$SECTION" ]; then
 	    diff -Nurb $MOONBASE/$SECTION/$MODULE $MOONBASE/zlocal/$MODULE --exclude ".svn" --exclude "CVS" | sed "s|^\([+-][+-][+-] \)$MOONBASE/[^/]*/|\1|g" | grep -v "^diff "
 	  else
-        cd $SCRIPT_DIRECTORY
-        for FILE in $(find * -type f | grep -v -e 'CVS/' -e '\.svn/'); do
-		  echo "--- $MODULE/$FILE"
-		  echo "+++ $MODULE/$FILE"
-		  echo "@@ -0,0 +1,$(wc -l $FILE| echo) @@"
-          cat $FILE | sed 's|^|+|g'
-        done
+	    diff -Nurb $MOONBASE/zlocal/.nonexistant $MOONBASE/zlocal/$MODULE --exclude ".svn" --exclude "CVS" | sed "s|^\([+-][+-][+-] \)$MOONBASE/[^/]*/|\1|g" | sed "s|\.nonexistant|$MODULE|g" | grep -v "^diff "
 	  fi
+	  echo -e "\n--$BOUNDARY"
+	  echo 'Content-Type: text/plain; charset="us-ascii"'
+	  echo 'MIME-Version: 1.0'
+	  echo 'Content-Transfer-Encoding: 7bit'
+	  echo ''
+	  echo "lvu submit $1 $(cat /bin/lvu | md5sum)"
+	  echo ''
     ) > $TMP_MSG
     edit_file $TMP_MSG
     cat $TMP_MSG | grep -v '^#'



More information about the Lunar-commits mailing list