head	1.2;
access;
symbols
	REL8_3_11:1.1
	REL8_3_10:1.1
	REL8_3_9:1.1
	REL8_3_8:1.1
	REL8_4_BETA1:1.1
	REL8_3_7:1.1
	REL8_3_6:1.1
	REL8_3_5:1.1
	REL8_3_4:1.1
	REL8_3_3:1.1
	REL8_3_2:1.1
	REL8_3_1:1.1
	REL8_3_STABLE:1.1.0.2
	REL8_3_0:1.1
	REL8_3_RC2:1.1
	REL8_3_RC1:1.1
	REL8_3_BETA4:1.1
	REL8_3_BETA3:1.1
	REL8_3_BETA2:1.1
	REL8_3_BETA1:1.1;
locks; strict;
comment	@# @;


1.2
date	2009.05.02.20.28.17;	author tgl;	state dead;
branches;
next	1.1;

1.1
date	2007.04.20.19.40.53;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.2
log
@We don't need major_release_split any more.
@
text
@:

# This program takes release.sgml and breaks it up into
# per-major-release files that can be copied to the proper
# CVS tree.

[ "$#" -ne 1 ] && echo "Usage: $0 release_sgml_file" 1>&2 && exit 1

FILE="$1"

trap "rm -f /tmp/preamble" 0 1 2 3 15

# Create the SGML preamble file
# Copy from the start of the file to the first "sect1" heading
grep -B 1000000 "`sed -n '/<sect1/p;/<sect1/q' \"$FILE\"`" "$FILE" | 
# exclude last line
sed -n '$q;p' > /tmp/preamble

# Create per-major-release files
# spin over all "sect1" releases to find major release numbers
sed -n 's/^ *<sect1 id="release-\([^-]-[^-]\).*/\1/p' "$FILE" |
uniq |
while read RELEASE
do
	# copy preamble
	cp /tmp/preamble "$RELEASE"-"`basename $FILE`"
	# grab remainder of file for major release
	grep -A 10000000 "<sect1 id=\"release-$RELEASE" "$FILE" >> "$RELEASE"-"`basename $FILE`"
done

@


1.1
log
@Add script major_release_split to simplify creating release notes for
multiple releases.
@
text
@@

