]> git.pld-linux.org Git - packages/chromium-browser.git/blob - make-diff-patch.sh
build with system jsoncpp
[packages/chromium-browser.git] / make-diff-patch.sh
1 #!/bin/sh
2 # Create .patch based on $1 for $2
3 src=$1
4 dst=$2
5 ext=.tar.xz
6
7 set -e
8
9 srcdir=$(basename $src $ext)
10 dstdir=$(basename $dst $ext)
11 patch=$dstdir.patch
12
13 test -d $srcdir || unpack $src
14 test -d $dstdir || unpack $dst
15 if diff -Nur $srcdir $dstdir > $patch; then
16         echo "No diffs!"
17 else
18         echo "Patch created"
19         ls -lh $patch
20         diffstat $patch | tee $patch.diff
21         cat $patch.diff $patch | xz -9 > $patch.xz
22 fi
23
24 rm -rf $dstdir $srcdir
This page took 0.027366 seconds and 3 git commands to generate.