#!/usr/bin/perl #------------------------------------------------------------------------------ # $Id: hdiff,v 1.1 2000/03/26 19:52:21 peters Exp peters $ # # NAME: hdiff # # PURPOSE: HTML diff. Produces a colourised HTML diff output which is # much easier to read than standard diff output. # # SOURCE: www.ginini.com/software/hdiff # # hdiff is derived from cvs2html from www.sslug.dk/cvs2html #------------------------------------------------------------------------------ require 5.000; use Getopt::Std; $diff='/usr/bin/diff'; # # Colors and font to show the diff type of code changes # $diffcolorHeading='#99BBBB'; # color of 'Line'-heading of each diffed file $diffcolorEmpty='#CCCCCC'; # color of 'empty' lines $diffcolorAdd='#FF9999'; # Removed line(s) (left) ( - ) $diffcolorChange='#99FF99'; # Changed line(s) ( both ) $diffcolorRemove='#CCCCFF'; # Added line(s) ( - ) (right) $diffcolorDarkChange ='#99CC99';# lines, which are empty in change $difffontface="Helvetica,Arial"; $difffontsize="-1"; #----------------------------------------------------------------------------- # END OF CONFIGURABLE OPTIONS #----------------------------------------------------------------------------- # MAIN BODY # # Process options # getopts('h:f'); die "Usage: $0 [-f