ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/pack/freebsd/libexec/diff.sh
(Generate patch)

Comparing freebsd/libexec/diff.sh (file contents):
Revision 639 by douglas, 2013-12-01T22:35:17-08:00 vs.
Revision 641 by douglas, 2014-05-25T23:59:01-07:00

# Line 9 | Line 9 | summary='Create a diff patch of a port'
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"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines