9 |
|
declare -A options |
10 |
|
declare -A arguments |
11 |
|
|
12 |
+ |
function svn_diff() |
13 |
+ |
{ |
14 |
+ |
svn_revision=`git svn find-rev remotes/origin/svn_head` |
15 |
+ |
git diff --no-prefix master | gsed -e 's/^index .*$/===================================================================/' \ |
16 |
+ |
-e 's/^diff --git \(.*\) \1$/Index: \1/' \ |
17 |
+ |
-e "s/^--- .*$/&\t(revision $svn_revision)/" \ |
18 |
+ |
-e 's/^+++ .*$/&\t(working copy)/' |
19 |
+ |
} |
20 |
+ |
|
21 |
|
function execute() |
22 |
|
{ |
23 |
< |
tool git devel/git |
23 |
> |
tool git devel/git-subversion |
24 |
> |
tool gsed ports/textproc/gsed |
25 |
|
tool svn devel/subversion |
26 |
+ |
|
27 |
+ |
svn_diff | cdiff |
28 |
+ |
|
29 |
|
help diff |
30 |
|
|
31 |
|
diff="diff/$category_port/$port.`date -u +%Y-%m-%dT%H%M%SZ`.diff" |