]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
- add kdediff()
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 18 Jan 2007 12:27:40 +0000 (12:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-build.sh -> 1.17

rpm-build.sh

index ee221d1778844e97bba76a5836579d397048eb59..2c35ee011988fab2113497fd958dcbc830844426 100644 (file)
@@ -34,6 +34,7 @@ alias adif="dif -x '*.m4' -x ltmain.sh -x install-sh -x depcomp -x 'Makefile.in'
 alias pclean="sed -i~ -e '/^\(?\|=\+$\|unchanged:\|diff\|only\|Only\|Files\|Common\|Index:\|RCS file\|retrieving\)/d'"
 
 # makes diff from PLD CVS urls
+# requires: cvs, tee
 urldiff() {
        local url="$1"
        if [ -z "$url" ]; then
@@ -62,6 +63,28 @@ urldiff() {
        fi
 }
 
+# makes diff from kde svn path
+# requires: wget, tee
+kdediff() {
+       local url="$1"
+       # --- branches/KDE/3.5/kdepim/kpilot/conduits/vcalconduit/vcalRecord.cc #624744:624745
+       url=${url#*--- }
+       echo >&2 "Process $url"
+       r1=${url#*#}
+       r2=${r1#*:}
+       r1=${r1%:*}
+
+       #  http://websvn.kde.org/branches/KDE/3.5/kdepim/kpilot/conduits/vcalconduit/vcalRecord.cc?rev=624745&r1=612579&r2=624745&makepatch=1&diff_format=u
+       url=http://websvn.kde.org/${url% *}
+       url="$url?r1=$r1&r2=$r2&makepatch=1&diff_format=u"
+
+       if [ -t 1 ]; then
+               wget "$url" -O -| tee m.patch | diffcol
+       else
+               wget "$url" -O -
+       fi
+}
+
 # merges two patches
 # requires: patchutils
 pmerge() {
This page took 0.095233 seconds and 4 git commands to generate.