[Lunar-commits] <lunar> Merging yet another lvu submit fix. this one seems to produce proper patch formatted diffs.

Auke Kok sofar at lunar-linux.org
Mon Jul 2 04:43:05 CEST 2012


commit 016c30a5a8c8682dfc2ab261d8755a1a2f7567e3
Author: Auke Kok <sofar at lunar-linux.org>
Date:   Mon Jun 6 13:21:27 2005 +0000

    Merging yet another lvu submit fix. this one seems to produce proper patch formatted diffs.
---
 bin/lvu |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/bin/lvu b/bin/lvu
index 283e174..a2f79d2 100755
--- a/bin/lvu
+++ b/bin/lvu
@@ -816,14 +816,15 @@ submit_module() {
 	  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