11) Unpack the original tarball in a separate directory.  Create a diff of the
2original and the current src directory.
3
42) Unpack the new update in a separate directory.  Overwrite the files in src
5with the files from the update.  Note that some filenames have been renamed:
6
7key.c     -> keymacro.c
8key.h     -> keymacro.h
9term.c    -> terminal.c
10el_term.h -> terminal.h
11
12Then manually apply the changes from the diff in 1) to the new files.
13
143) The patch-configure.ac file only deals with libtool-style versioning.
15We had altered the version numbers so that the version number in the name
16of the dylib matched the libedit version number, but this was the wrong
17thing to do, and now we are stuck.  For instance, original libtool-style
18version number for a past version was 0:27:0.  It was changed to 1:11:0 so
19that libedit.2.11.dylib was created (1 is added to the major number, because
20the libtool major number can be zero, but not the Mac OS X major number).
21
22libedit 3.0 has a libtool version number of 0:35:0, meaning it is binary-
23compatible with the 2.11 version.  Since we now build with Xcode, we don't
24care about the libtool versioning, *except* that it tells use the 3.0
25version is binary compatible with libedit.2.dylib.  So we can create a
26libedit.3.dylib, plus the usual symlinks libedit.dylib, and libedit.3.0.dylib,
27and also create a libedit.2.dylib symlink, *if* we remember to set the
28compatibility version of libedit.3.dylib to 2.0.
29
304) Unpack the original tarball, make a darwin subdirectory at the top level,
31and cd there.  Then run:
32
33% ../configure --help
34
35Do the same for the new tarball.  In this case, there are no new options.
36
375) Run in each of the darwin subdirectories:
38
39% ../configure --disable-dependency-tracking --enable-shared --disable-static --enable-widec
40% make
41
42This will create config.h at the top level, and the nine auto-generated files:
43
44common.h	fcns.c		help.c		historyn.c	vi.h
45emacs.h		fcns.h		help.h		tokenizern.c
46
47in the src directory.
48
496) For the original files, copy the nine auto-generated files to a temp
50directory, like /tmp/local:
51
52% diff -r /tmp/local $libedit/local >/tmp/DIFF
53
54(where $libedit is the path the the current version of the libedit project).
55This create a diff of what has changed in those auto-generated files.
56
577) Overwrite the nine auto-generated files in $libedit/local from the new darwin/src directory.
58Now manually apply the patches from /tmp/DIFF.
59
608) Diff the original config.h with the one in $libedit (in this case, no
61differences).
62
639) Diff the original config.h with the new config.h to see what has changed.
64Then overwrite the original config.h with the new config.h.
65
6610) Global replace in libedit.xcodeproj/project.pbxproj, the filenames that
67have changed with their new name.
68
6911) Update the man pages in the doc directory,
70
7112) Update the libedit.plist.
72