head     1.1;
branch   1.1.1;
access   ;
symbols  httpd-base:1.1.1.1 MRG:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2009.11.03.04.55.18;  author agc;  state Exp;
branches 1.1.1.1;
next     ;
commitid        VqJxsN5LGNAxU1au;

1.1.1.1
date     2009.11.03.04.55.18;  author agc;  state Exp;
branches ;
next     ;
commitid        VqJxsN5LGNAxU1au;


desc
@@



1.1
log
@Initial revision
@
text
@#! /bin/sh
#
#	$eterna: html_cmp,v 1.8 2003/02/06 09:40:39 mrg Exp $
#
# like cmp(1) but compares to files after making their `Date: ' headers
# the same, to allow `now' and `then' to work properly.  it also tries
# to find servername's that might be the local host and converts those
# as well..
#
# it must be called like `cmp file1 file1' *only*.  

h=`hostname || uname -n`

sedcmd="s/^Date: .*/Date: nowish/;
	s/^Last-Modified: .*/Last-Modified: nowish/;
	s/[a-zA-Z0-9-]*\.eterna\.com\.au/$h/g;
	s/^Server: .*/^Server: bozotic HTTP server version 5.08/;
	s/^Content-Length: .*/Content-Length: 223/;"

sed -e "$sedcmd" < $1 > f1.tmp.$$
sed -e "$sedcmd" < $2 > f2.tmp.$$

cmp -s f1.tmp.$$ f2.tmp.$$
rv=$?
rm -f f1.tmp.$$ f2.tmp.$$

exit $rv
@


1.1.1.1
log
@initial import of mrg's bozohttpd
@
text
@@
