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