/usr/share/doc/xxdiff-scripts/examples/clearcase/xx-ct-diff is in xxdiff-scripts 1:4.0.1+dfsg-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #!/bin/sh
#
# Autor: Jimmy Björklund
# Mail: xx-ct-diff@dreamz.se
#
# Tool for diffing files in clearcase using xxdiff.
#
# xxdiff can be found at http://furius.ca/xxdiff/
#
if [ $# -ne 1 ]; then
b="xx-ct-diff";
echo ""
echo "Usage: Compare the current file with the latest on this branch or"
echo " all the files from a given directory root."
echo ""
echo " $b <file>|<dir>"
echo ""
exit 1;
fi
if [ -d $1 ]; then
echo $0 - Directory $1:
for d in `cleartool lsprivate -co $1 | sed 's/ .*//g'` ; do
$0 $d;
done
exit 1;
fi
version=`cleartool describe -predecessor $1 | grep "predecessor version:" | sed -e 's/predecessor version://g' -e 's/ //g'`
#
# You can substitute xxdiff with meld if you find it more
# to your liking.
#
xxdiff $1 "$1@@$version"
|