1 |
douglas |
12 |
#!/usr/local/bin/bash |
2 |
douglas |
638 |
# Diff |
3 |
|
|
# |
4 |
|
|
# Douglas Thrift |
5 |
|
|
# |
6 |
|
|
# $Id$ |
7 |
douglas |
12 |
|
8 |
douglas |
638 |
summary='Create a diff patch of a port' |
9 |
douglas |
12 |
|
10 |
douglas |
638 |
function execute() |
11 |
|
|
{ |
12 |
|
|
tool git devel/git |
13 |
|
|
tool svn devel/subversion |
14 |
|
|
help diff |
15 |
douglas |
12 |
|
16 |
douglas |
638 |
diff="diff/$category_port/$port.`date -u +%Y-%m-%dT%H%M%SZ`.diff" |
17 |
|
|
|
18 |
|
|
svnmkdir `dirname $diff` |
19 |
|
|
sanitize_freebsd_ids |
20 |
|
|
(cd $category; diff -Nrux .svn -x work /usr/ports/$category_port $port) | tee $diff |
21 |
|
|
unsanitize_freebsd_ids |
22 |
|
|
svn add $diff |
23 |
|
|
} |
24 |
|
|
|
25 |
|
|
# vim: noexpandtab tabstop=4 |