head	2.8;
access;
symbols
	rpm-4_4_8-release:2.8.8.1
	rpm-4_4_7-release:2.8
	rpm-4_4_6-release:2.8
	rpm-4_4_5-release:2.8
	rpm-4_4_4-release:2.8
	rpm-4_4_3-release:2.8
	jbj_before_tklcpatches:2.8
	rpm-4_4_2-release:2.8
	rpm-4_4_1-release:2.8
	rpm-4_4-release:2.8
	rpm-4_4:2.8.0.8
	rpm-4_3_1-start:2.8
	rpm-4_3:2.8.0.6
	rpm-4_2_1-release:2.8
	rpm-4_1_1-release:2.8
	rpm-4_2-release:2.8
	rpm-4_2:2.8.0.4
	rpm-4_1-release:2.8
	rpm-4_1:2.8.0.2
	rpm-4_0_4-release:2.4.14.3
	jbj-before-beecrypt:2.4.14.3
	rpm-4_0_3-release:2.4.14.3
	jbj_b4_rollback:2.4.14.3
	rpm-4_0_2-release:2.4.14.1
	rpm-4_0_1-release:2.4.14.1
	rpm-3_0_6-release:2.4
	rpm-4_0-release:2.4
	rpm-3_0_6:2.4
	rpm-4_0:2.4.0.14
	rpm-3_0_5:2.4.0.12
	jbj_sparc64:2.4.0.10
	rpm-3_0_4:2.4.0.8
	rpm-3_0_3:2.4.0.6
	rpm-3_0_2:2.4
	rpm-3_0:2.4.0.4
	r2-94:2.4
	r2-93:2.4
	r2-92:2.4
	r2-91:2.4
	r2-5-7:2.4
	r2-5-6:2.4
	jbj-pre-automake:2.4
	r2-5-5:2.4
	r2-5-4:2.4
	r2-5-3:2.4
	r2-90:2.4
	branch-r2-5:2.4.0.2
	r2-5-2:2.4
	r2-5-1:2.4
	r2-5:2.4
	r2-4-109:2.4
	r2-4-108:2.4
	r2-4-107:2.4
	r2-4-106:2.4
	r2-4-104:2.4
	r2-4-103:2.4
	r2-4-102:2.3
	r2-4-101:2.3
	r2-4-100:2.3
	r2-4-99:2.3
	r2-4-tree:2.3.0.6
	r-2-4-tree:2.3.0.4
	r2-4-12:2.3
	r2-3-12:2.3
	r2-3-11-patches:2.3.0.2
	r2-4-11:2.3
	r2-4-10:2.3
	r2-4-9:2.3
	r2-4-8:2.3
	r2-4-7:2.3
	r2-4-6:2.3
	r2-4-5:2.3
	r2-4-4:2.3
	r2-4-3:2.3
	r2-4-2:2.3
	r2-4-1:2.3
	r2-3-11:2.3
	r2-4:2.3
	2-3-11:2.3
	2-3-10:2.3
	2-3-9:2.3
	2-3-8:2.3
	2-3-7:2.3
	2-3-6:2.3
	2-3-5:2.3
	2-3-4:2.3
	2-3-3:2.3
	2-3-2:2.3
	2-3-1:2.3
	2-2-11:2.2
	2-2-10:2.2
	2-3:2.2
	2-2-9:2.2
	2-2-8:2.2
	2-2-7:2.2
	2-1:2.2
	2-0-11:2.2
	2-0-10:2.2
	2-0-9:2.2
	2-0-8:2.1
	2-0-6:2.1
	2-0-0:2.1
	2-0i:1.1
	2-0h:1.1
	2-0f:1.1
	2-0c:1.1
	2-0b:1.1
	2-0a:1.1
	name:1.1;
locks; strict;
comment	@# @;


2.8
date	2002.07.13.19.54.36;	author jbj;	state Exp;
branches
	2.8.8.1;
next	2.7;

2.7
date	2001.07.06.20.37.42;	author jbj;	state Exp;
branches;
next	2.6;

2.6
date	2001.05.29.15.03.36;	author jbj;	state Exp;
branches;
next	2.5;

2.5
date	2000.12.16.19.00.30;	author jbj;	state Exp;
branches;
next	2.4;

2.4
date	98.03.04.16.05.15;	author ewt;	state Exp;
branches
	2.4.14.1;
next	2.3;

2.3
date	97.01.13.17.23.43;	author ewt;	state Exp;
branches;
next	2.2;

2.2
date	96.05.10.16.24.05;	author root;	state Exp;
branches;
next	2.1;

2.1
date	96.03.07.05.36.15;	author root;	state Exp;
branches;
next	1.1;

1.1
date	96.01.10.17.03.08;	author marc;	state Exp;
branches;
next	;

2.4.14.1
date	2000.12.19.17.59.29;	author jbj;	state Exp;
branches;
next	2.4.14.2;

2.4.14.2
date	2001.05.29.15.00.42;	author jbj;	state Exp;
branches;
next	2.4.14.3;

2.4.14.3
date	2001.07.06.20.35.14;	author jbj;	state Exp;
branches;
next	;

2.8.8.1
date	2007.01.03.17.42.17;	author jbj;	state Exp;
branches;
next	;


desc
@small script to ease diff creation
@


2.8
log
@- teach gendiff about unreadable files (#42666).
@
text
@#!/bin/sh

[ -z "$1" -o -z "$2" ] && {
# usage
  echo "usage: $0 <directory> <diff-extension>" 1>&2
  exit 1
}

find $1 \( -name "*$2" -o -name ".*$2" \) -print |
while read f; do
    U=-u
    [ "`basename $f`" = "ChangeLog$2" ] && U=-U0
#    diff ${U} $f `echo $f | sed s/$2\$//`
    if [ -r "$f" ]; then
	diff ${U} "${f}" "${f%$2}"
    else
	diff ${U} /dev/null "${f%$2}"
    fi
done
@


2.8.8.1
log
@- gendiff: permit $DIFF override, add -p to default diff. (#146981).
@
text
@a8 2
: ${DIFF:=diff -p}

d13 1
a13 1
#    ${DIFF}  ${U} $f `echo $f | sed s/$2\$//`
d15 1
a15 1
	${DIFF}  ${U} "${f}" "${f%$2}"
d17 1
a17 1
	${DIFF}  ${U} /dev/null "${f%$2}"
@


2.7
log
@- expose rpmShowProgress() and rpmVerifyDigest() in rpmcli.h.
- portability: avoid st_mtime, gendiff uses basename, etc (#47497).
- glibc-2.0.x has not __va_copy().
- popthelp.c: static copy of stpcpy/stpncpy for the deprived (#47500).
@
text
@d13 6
a18 1
    diff ${U} $f `echo $f | sed s/$2\$//`
@


2.6
log
@- eliminate db-1.85 and db-2.x configuration.
- fix: popt arg sanity checks broken, optarg != optArg.
- fix: popt range checks on floats/doubles broken.
- popt: return POPT_ERROR_ERRNO on config open/read/close failure.
@
text
@d12 1
a12 1
    [ "${f##*/}" = "ChangeLog$2" ] && U=-U0
@


2.5
log
@- gendiff: generate ChangeLog patches more intelligently (#22356).
@
text
@d12 1
a12 1
    [ "${f##*/}" == "ChangeLog$2" ] && U=-U0
@


2.4
log
@don't depend on bash
@
text
@d11 3
a13 1
	diff -u $f `echo $f | sed s/$2\$//`
@


2.4.14.1
log
@- gendiff: generate ChangeLog patches more intelligently (#22356).
- identify install scriptlet failures with the name of the scriptlet.
- handle install chroot's identically throughout the install process.
- add rpmlib(HeaderLoadSortsTags) for tracking header regions "just in case".
- create _tmppath on the fly if not present.
@
text
@d11 1
a11 3
    U=-u
    [ "${f##*/}" == "ChangeLog$2" ] && U=-U0
    diff ${U} $f `echo $f | sed s/$2\$//`
@


2.4.14.2
log
@- eliminate db-1.85 and db-2.x configuration.
- fix: popt arg sanity checks broken, optarg != optArg.
- fix: popt range checks on floats/doubles broken.
- popt: return POPT_ERROR_ERRNO on config open/read/close failure.
@
text
@d12 1
a12 1
    [ "${f##*/}" = "ChangeLog$2" ] && U=-U0
@


2.4.14.3
log
@- expose rpmShowProgress() and rpmVerifyDigest() in rpmcli.h.
- portability: avoid st_mtime, gendiff uses basename, etc (#47497).
- glibc-2.0.x has not __va_copy().
- popthelp.c: static copy of stpcpy/stpncpy for the deprived (#47500).
@
text
@d12 1
a12 1
    [ "`basename $f`" = "ChangeLog$2" ] && U=-U0
@


2.3
log
@add mkj's usage message
@
text
@d1 1
a1 1
#!/bin/bash
d11 1
a11 1
	diff -u $f ${f%%$2}
@


2.2
log
@handle dot files
@
text
@d3 6
@


2.1
log
@RPM 2.0 released
@
text
@d3 1
a3 1
find $1 -name "*$2" -print |
@


1.1
log
@Initial revision
@
text
@@
