# $NetBSD: UPDATE.txt,v 1.1 2002/08/12 01:53:37 dmcmahill Exp $

This file documents the steps taken to update this package.

=)  Extract sources

  make clean && make extract

=)  Copy to .orig directory
  mkdir -p /some/tmp/dir/gcc-2.95.3.orig
  mv work/gcc-2.95.3 /some/tmp/dir/gcc-2.95.3.orig/gcc

=)  Update in-tree gcc sources

  cd /usr/src/gnu/dist/toolchain && cvs update

=)  Copy over the new sources excluding CVS directories

  mkdir /some/tmp/dir/gcc-2.95.3
  tar --exclude CVS -cvf - gcc | ( cd /some/tmp/dir/gcc-2.95.3 ; tar -xf - )

=)  Create patch file

  mkdir /some/tmp/dir/foo
  cd /some/tmp/dir/foo && diff -u2 -r -N ../gcc-2.95.3.orig/gcc ../gcc-2.95.3/gcc  > gcc-2.95.3-diff-`date '+%Y-%m-%d'`
  gzip gcc-2.95.3-diff-`date '+%Y-%m-%d'`

=) copy the patch file to your distfiles directory, and 'make makesum'.  Now proceed with
   creating any pkgsrc specific patches for gcc, placing them in patches/ as usual.

=) when its all tested and working, upload the patchfile
   to ftp.netbsd.org:/pub/NetBSD/packages/distfiles/LOCAL_PORTS/

Hopefully this procedure will make maintaining this package a little easier.

