1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: target/psion-pda/pkg_links.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Well - the patches does multiple things:
19 It fixes the genertor helpers to work with recent libraries and tools and on
20 non-x86 arches to be able to regenerate and thus strip a lot of stuff.
22 - Rene Rebe <rene@exactcode.de>
24 diff -ur links-2.1pre16/Unicode/gen-cp links-2.1pre16-hacked/Unicode/gen-cp
25 --- links-2.1pre16/Unicode/gen-cp 2002-11-03 11:10:38.000000000 +0100
26 +++ links-2.1pre16-hacked/Unicode/gen-cp 2005-02-28 00:29:09.433976128 +0100
30 echo 'struct table_entry table_'$i' [] = {'
31 - tail +3 $i.cp | sed 's/#.*$//' | grep '^0x[89a-zA-Z]' | sed 's/[ ][ ]*/ /g' | sed 's/[ ]*$/ },/' | sed 's/ /, /' | sed 's/^[ ]*/ { /' | grep '.*,.*,'
32 + tail -n +3 $i.cp | sed 's/#.*$//' | grep '^0x[89a-zA-Z]' | sed 's/[ ][ ]*/ /g' | sed 's/[ ]*$/ },/' | sed 's/ /, /' | sed 's/^[ ]*/ { /' | grep '.*,.*,'
36 - echo 'unsigned char *aliases_'$i' [] = {'`head -2 $i.cp | tail +2`', NULL };'
37 + echo 'unsigned char *aliases_'$i' [] = {'`head -n 2 $i.cp | tail -n +2`', NULL };'
41 echo 'struct codepage_desc codepages [] = {'
42 for i in $codepages; do
43 - echo ' { "'`head -1 $i.cp`'", aliases_'$i', table_'$i' },'
44 + echo ' { "'`head -n 1 $i.cp`'", aliases_'$i', table_'$i' },'
46 echo ' { NULL, NULL, NULL }'
48 diff -ur links-2.1pre16/Unicode/index.txt links-2.1pre16-hacked/Unicode/index.txt
49 --- links-2.1pre16/Unicode/index.txt 2002-10-14 11:13:16.000000000 +0200
50 +++ links-2.1pre16-hacked/Unicode/index.txt 2005-02-28 00:27:04.527964728 +0100
87 --- links-2.1pre16/configure 2005-01-22 21:54:20.000000000 +0100
88 +++ links-2.1pre16-hacked/configure 2005-02-17 23:17:46.000000000 +0100
90 AUTOCONF="./missing autoconf"
91 AUTOMAKE="./missing automake"
92 AUTOHEADER="./missing autoheader"
93 -image_formats="GIF PNG XBM"
98 --- links-2.1pre16/graphics/Makefile 2003-08-17 02:25:49.000000000 +0200
99 +++ links-2.1pre16-hacked/graphics/Makefile 2005-02-24 01:10:59.000000000 +0100
101 rm -f improcess gepns core pbm2png clip generate_font arrow
103 improcess: improcess.c
104 - gcc -o improcess $(CFLAGS) $(LDFLAFGS) -lpng improcess.c
105 + gcc -o improcess $(CFLAGS) $(LDFLAFGS) -lpng -lz -lm improcess.c
108 - gcc -o pbm2png $(CFLAGS) $(LDFLAGS) -lpng pbm2png.c
109 + gcc -o pbm2png $(CFLAGS) $(LDFLAGS) -lpng -lz -lm pbm2png.c
114 gcc -o generate_font -lm -lpng -lz $(CFLAGS) $(LDFLAGS) generate_font.c
117 - gcc -o arrow $(CFLAGS) $(LDFLAGS) arrow.c -lpng
118 + gcc -o arrow $(CFLAGS) $(LDFLAGS) arrow.c -lpng -lz -lm
119 --- links-2.1pre16/graphics/pbm2png.c 2002-05-05 22:47:32.000000000 +0200
120 +++ links-2.1pre16-hacked/graphics/pbm2png.c 2005-02-24 01:10:24.000000000 +0100
121 @@ -149,14 +149,14 @@
122 sprintf(string,"%s%d.html",basename_,index);
125 - fprintf(f,"<html><head><title>%s</title></head><body bgcolor=\"#000000\" text=\"#00ff00\" link=\"#ffff00\" vlink=\"#00ffff\"
126 + fprintf(f,"<html><head><title>%s</title></head><body bgcolor=\"#000000\" text=\"#00ff00\" link=\"#ffff00\" vlink=\"#00ffff\"\
127 alink=\"#ffff00\">\n",titlestring);
128 fprintf(f,"<h1>%s, Page %d</h1>\n",titlestring,index+pageoffset);
129 fprintf(f,"<p><table border=0 cellspacing=0 cellpadding=2><tr>");
130 fprintf(f,"<td valign=\"top\"><table border=0 cellpadding=0 cellspacing=0><tr><td>");
133 - fprintf(f,"<a href=\"%s%d.html\"><img src=\"left.png\" border=0
134 + fprintf(f,"<a href=\"%s%d.html\"><img src=\"left.png\" border=0\
135 ></a>\n",basename_,index-1);
138 @@ -166,17 +166,17 @@
139 fprintf(f,"</td><td>");
140 if (index<filenumber-1)
142 - fprintf(f,"<a href=\"%s%d.html\">
143 + fprintf(f,"<a href=\"%s%d.html\">\
144 <img src=\"right.png\" border=0></a>\n",basename_,index+1);
148 fprintf(f,"<img src=\"right.png\" border=0>\n");
150 - fprintf(f,"</td></tr><tr><td colspan=2><a href=\"index.html\">
151 + fprintf(f,"</td></tr><tr><td colspan=2><a href=\"index.html\">\
152 <img src=\"idx.png\" border=0 ></a></td>");
153 fprintf(f,"</tr></table>");
154 - fprintf(f,"</td><td><img src=\"%s%d.png\" border=\"0\"
155 + fprintf(f,"</td><td><img src=\"%s%d.png\" border=\"0\"\
156 ></td>\n</tr></table>",basename_,index);
157 fprintf(f,"</body></html>");
163 - fprintf(stderr,"Usage: pbm2png <hundred_dpi> <basename_> <titlestring>
164 + fprintf(stderr,"Usage: pbm2png <hundred_dpi> <basename_> <titlestring>\
165 <bottom_html_code> <pageoffset> <ifname> [starting_filenumber]\n");
168 --- links-2.1pre16/language.inc 2005-01-22 21:51:55.000000000 +0100
169 +++ links-2.1pre16-hacked/language.inc 2005-02-24 00:51:30.000000000 +0100
175 struct translation translation_belarusian [] = {
177 {T__CHAR_SET, "koi8-ru" },
178 @@ -16416,6 +16417,8 @@
184 struct translation_desc translations [] = {
185 { translation_english },
186 { translation_belarusian },