[tor-commits] [ooni-probe/master] * Made the submit-patch script create the /patches directory if it doesn't already exist.

isis at torproject.org isis at torproject.org
Thu Nov 8 07:44:08 UTC 2012


commit d02cb70f6e788c37273f8953be827a0adb0a8185
Author: Isis Lovecruft <isis at torproject.org>
Date:   Thu Nov 8 07:14:43 2012 +0000

    * Made the submit-patch script create the /patches directory if it doesn't already exist.
---
 submit-patch |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/submit-patch b/submit-patch
index f794a2f..4768deb 100755
--- a/submit-patch
+++ b/submit-patch
@@ -87,7 +87,12 @@ echo;
 echo -e "\033[40m\033[0;32m THIS SCRIPT DOES NOT SEND THE PATCH FILES. \033[0m"
 echo -e "\033[40m\033[0;32m You'll have to handle that bit on your own. \033[0m"
 echo;
-
+if test ! -d "patches" ; then
+    echo; echo -e "\033[40m\033[0;32m Creating '/patches' directory... \033[0m"
+    mkdir patches
+else
+    echo; echo -e "\033[40m\033[0;32m Using '/patches' directory... \033[0m"
+fi
 git format-patch --full-index -o "./patches" --stat -l10 --ignore-submodules \
     --binary --cover-letter --numbered --ignore-if-in-upstream \
     --suffix=".patch"  --to="$DEVELOPERS" --cc="$CC" master





More information about the tor-commits mailing list