File: perforce_diff.sh

package info (click to toggle)
xxdiff 1%3A4.0%2Bhg437%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,124 kB
  • ctags: 2,397
  • sloc: cpp: 18,485; python: 6,088; ansic: 1,535; sh: 1,533; perl: 308; lex: 284; yacc: 277; lisp: 250; tcl: 213; makefile: 82
file content (18 lines) | stat: -rwxr-xr-x 441 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

#########################################################
# Author:      Christian Fowler <cafweb@lulu.com>
# Description: cracks open xxdiff given two perforce file versions
###

if [ $# -ne 2 ]; then
        echo "Usage: $0 file#rev1 file#rev2"
        echo "   or: $0 file@change2 file@change2"
        exit 1
fi

p4 print -q $1 > /tmp/p4-$1
p4 print -q $2 > /tmp/p4-$2
xxdiff /tmp/p4-$1 /tmp/p4-$2
rm /tmp/p4-$1
rm /tmp/p4-$2