[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debian JP master SVN www commits (rev.941)



=======================================================
Repository: /org/svn.debian.or.jp/repos
  Revision: 941
  Commiter: kmuto
      Date: 2009-10-13 10:07:40 +0900 (火, 13 10月 2009)
=======================================================
Log:

more operation

=======================================================
Changed:

U   webwml-sync/trunk/webwml-patch-commit

Modified: webwml-sync/trunk/webwml-patch-commit
===================================================================
--- webwml-sync/trunk/webwml-patch-commit	2009-10-13 00:58:17 UTC (rev 940)
+++ webwml-sync/trunk/webwml-patch-commit	2009-10-13 01:07:40 UTC (rev 941)
@@ -40,17 +40,23 @@
     else
       logmsg=$(head -n 4 $patchesdir/$pf | grep Subject: | sed -e "s/Subject: \[PATCH\] //")
       while true; do
-        echo -n "[COMMIT] $pf as $logmsg. OK? [y/n]"
+        echo -n "[COMMIT] $pf as $logmsg. OK? [y/n/p/s]"
         read yn
-        if [ "$yn" = "y" ]; then
+        if [ "$yn" = "y" ]; then # apply
           patch -p1 -f < ${patchesdir}/$pf
-          cd japanese # assurance to not break other languages
+          cd japanese # fool proof
           cvs commit -m "$logmsg"
           mv $patchesdir/$pf $patcheddir/$patchedprefix$pf
           echo $sha1 > $lastcommitfile
           break
-        elif [ "$yn" = "n" ]; then
+        elif [ "$yn" = "n" ]; then # keep and skip
           break
+        elif [ "$yn" = "p" ]; then # pager
+          $PAGER $patchesdir/$pf
+        elif [ "$yn" = "s" ]; then # skip and move to patched
+          mv $patchesdir/$pf $patcheddir/$patchedprefix$pf
+          echo $sha1 > $lastcommitfile
+          break
         fi
       done
     fi