summaryrefslogtreecommitdiffstats
path: root/pullrev.sh
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-02 08:23:01 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-02 08:23:01 +0200
commita0b7d94015d8356e3d8b0a6f35877578512e0f5b (patch)
treee54e3e67393a790721304dac5d8941931ad00feb /pullrev.sh
parent2b4bc86c70a3dfe61ada6c69c658b20ca8d5e2df (diff)
httpd-2.4.2-12, sync with rawhide
Diffstat (limited to 'pullrev.sh')
-rwxr-xr-xpullrev.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/pullrev.sh b/pullrev.sh
index 14477ad..9968fa3 100755
--- a/pullrev.sh
+++ b/pullrev.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
if [ $# -lt 1 ]; then
echo "What?"
@@ -14,9 +14,10 @@ vcurl="http://svn.apache.org/viewvc?view=revision&revision="
if test -f ${fn}; then
mv -v -f ${fn} ${fn}\~
- sed '/^--- /,$d' < ${fn}\~ > ${fn}
+ echo "# $0 $*" > ${fn}
+ sed '1{/#.*pullrev/d;};/^--- /,$d' < ${fn}\~ >> ${fn}
else
- echo > ${fn}
+ echo "# $0 $*" > ${fn}
fi
new=0
@@ -33,7 +34,8 @@ prev=/dev/null
for r in $*; do
echo "+ fetching ${r}"
this=`mktemp /tmp/pullrevXXXXXX`
- svn diff -c ${r} ${repo} | filterdiff --remove-timestamps --addprefix="${prefix}/" > ${this}
+ svn diff -c ${r} ${repo} | filterdiff --remove-timestamps -x 'CHANGES' \
+ --addprefix="${prefix}/" > ${this}
next=`mktemp /tmp/pullrevXXXXXX`
combinediff --quiet ${prev} ${this} > ${next}
rm -f "${this}"