1
0
Files
irix-657m-src/eoe/cmd/xdiff/gdiff
2022-09-29 17:59:04 +03:00

42 lines
1.1 KiB
Bash

#! /sbin/sh
#Tag 0x00000120
# Copyright (C) 1995 Silicon Graphics, Inc
# All Rights Reserved
# These coded instructions, statements, and computer programs contain
# unpublished proprietary information of Silicon Graphics, Inc., and
# are protected by Federal copyright law. They may not be disclosed
# to third parties or copied or duplicated in any form, in whole or
# in part, without the prior written consent of Silicon Graphics, Inc.
#
# gdiff has been obsoleted.
# This script is provided as a conversion
# aid, for those programs or scripts that invoked gdiff
while getopts f:N:s:p:biwWD c
do
case $c in
f) flags="-fn $OPTARG";;
s) size="`echo $OPTARG|sed 's/,/x/'`" ;;
p) pos="`echo $OPTARG|sed 's/,/+/'`" ;;
W) ;; # (old gdiff man page was misleading; even without -W,
# it did not auto-background itself)
N) flags="$flags -$c $OPTARG" ;;
\?) ;;
*) flags="$flags -$c" ;;
esac
done
shift `expr $OPTIND - 1`
if [ -n "$size" ]
then geom="-geom $size"
fi
if [ -n "$pos" ] ; then
if [ -z "$size" ]
then geom="-geom 1200x600+$pos"
else geom="$geom+$pos"
fi
fi
exec xdiff $flags $geom "$@"