Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2007-12-04 13:49:22 +0300
committerLluis Sanchez <lluis@novell.com>2007-12-04 13:49:22 +0300
commit0aa95ab0ad2750a62ca248d0154b9b9f80f11de8 (patch)
tree1de0d12270990af00b94d77e7a54eac89bc36122 /main/svnci
parent7195f4926b21b46ad8e4ce1976603ffc63b49729 (diff)
Directory reorganization
svn path=/branches/monodevelop/reorg/; revision=90637
Diffstat (limited to 'main/svnci')
-rwxr-xr-xmain/svnci54
1 files changed, 54 insertions, 0 deletions
diff --git a/main/svnci b/main/svnci
new file mode 100755
index 0000000000..5fd81d1c93
--- /dev/null
+++ b/main/svnci
@@ -0,0 +1,54 @@
+#! /bin/bash
+
+FILES=$@
+
+echo "Creating commit message..."
+
+MSG=`mktemp`
+
+svn di $FILES | filterdiff -i'*ChangeLog' |
+ sed -e '/^[^+]/d' -e 's,^[+],,' -e '/^[^+]/b' -e 's,^[+][+],In,' -e 's,/ChangeLog.*$,:,' -e 's,ChangeLog.*$,.:,' >> $MSG
+
+case `grep '^In' $MSG | wc -l` in
+1) (echo 1d; echo w; echo q) | ed - $MSG ;;
+*) ;;
+esac
+
+cat $MSG
+
+echo About to commit
+svn st $FILES
+
+while [[ 1 ]]
+do
+
+ read -a RESPONSE -p"Would you like to continue (Y)es/(N)o/(E)dit Message: "
+ if [[ $? != 0 ]]
+ then
+ RESPONSE="N"
+ fi
+
+ case $RESPONSE in
+ "Y" | "y" | "yes" | "Yes")
+
+ echo "Comitting..."
+ svn ci -F $MSG $FILES
+ rm $MSG
+ exit 0
+ ;;
+
+ "N" | "n" | "no" | "No")
+ echo "Aborting..."
+ rm $MSG
+ exit 1
+ ;;
+
+ "E" | "e" | "ed" | "Ed" | "Edit" | "edit")
+ vi $MSG
+ # try again
+ ;;
+ *)
+ # try again
+ ;;
+ esac
+done