OpenSDE Framework (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

186 lines
5.9 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: target/psion-pda/pkg_links.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  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
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. Well - the patches does multiple things:
  17. It fixes the genertor helpers to work with recent libraries and tools and on
  18. non-x86 arches to be able to regenerate and thus strip a lot of stuff.
  19. - Rene Rebe <rene@exactcode.de>
  20. diff -ur links-2.1pre16/Unicode/gen-cp links-2.1pre16-hacked/Unicode/gen-cp
  21. --- links-2.1pre16/Unicode/gen-cp 2002-11-03 11:10:38.000000000 +0100
  22. +++ links-2.1pre16-hacked/Unicode/gen-cp 2005-02-28 00:29:09.433976128 +0100
  23. @@ -10,17 +10,17 @@
  24. echo -n $i' ' 1>&2
  25. echo
  26. echo 'struct table_entry table_'$i' [] = {'
  27. - tail +3 $i.cp | sed 's/#.*$//' | grep '^0x[89a-zA-Z]' | sed 's/[ ][ ]*/ /g' | sed 's/[ ]*$/ },/' | sed 's/ /, /' | sed 's/^[ ]*/ { /' | grep '.*,.*,'
  28. + tail -n +3 $i.cp | sed 's/#.*$//' | grep '^0x[89a-zA-Z]' | sed 's/[ ][ ]*/ /g' | sed 's/[ ]*$/ },/' | sed 's/ /, /' | sed 's/^[ ]*/ { /' | grep '.*,.*,'
  29. echo ' { 0, 0 }'
  30. echo '};'
  31. echo
  32. - echo 'unsigned char *aliases_'$i' [] = {'`head -2 $i.cp | tail +2`', NULL };'
  33. + echo 'unsigned char *aliases_'$i' [] = {'`head -n 2 $i.cp | tail -n +2`', NULL };'
  34. n=`expr $n + 1`
  35. done
  36. echo
  37. echo 'struct codepage_desc codepages [] = {'
  38. for i in $codepages; do
  39. - echo ' { "'`head -1 $i.cp`'", aliases_'$i', table_'$i' },'
  40. + echo ' { "'`head -n 1 $i.cp`'", aliases_'$i', table_'$i' },'
  41. done
  42. echo ' { NULL, NULL, NULL }'
  43. echo '};'
  44. diff -ur links-2.1pre16/Unicode/index.txt links-2.1pre16-hacked/Unicode/index.txt
  45. --- links-2.1pre16/Unicode/index.txt 2002-10-14 11:13:16.000000000 +0200
  46. +++ links-2.1pre16-hacked/Unicode/index.txt 2005-02-28 00:27:04.527964728 +0100
  47. @@ -1,35 +1,4 @@
  48. 7bit
  49. 8859_1
  50. -8859_2
  51. -8859_3
  52. -8859_4
  53. -8859_5
  54. -8859_6
  55. -8859_7
  56. -8859_8
  57. -8859_9
  58. -8859_10
  59. -8859_13
  60. -8859_14
  61. 8859_15
  62. -8859_16
  63. -cp1250
  64. -cp1251
  65. -cp1252
  66. -cp1256
  67. -cp1257
  68. -cp437
  69. -cp737
  70. -cp850
  71. -cp852
  72. -cp866
  73. -cp1125
  74. -macroman
  75. -mac_lat2
  76. -kamen
  77. -koi8_r
  78. -koi8_u
  79. -koi8_ru
  80. -tcvn5712
  81. -viscii
  82. utf_8
  83. --- links-2.1pre16/configure 2005-01-22 21:54:20.000000000 +0100
  84. +++ links-2.1pre16-hacked/configure 2005-02-17 23:17:46.000000000 +0100
  85. @@ -813,7 +813,7 @@
  86. AUTOCONF="./missing autoconf"
  87. AUTOMAKE="./missing automake"
  88. AUTOHEADER="./missing autoheader"
  89. -image_formats="GIF PNG XBM"
  90. +image_formats=""
  91. --- links-2.1pre16/graphics/Makefile 2003-08-17 02:25:49.000000000 +0200
  92. +++ links-2.1pre16-hacked/graphics/Makefile 2005-02-24 01:10:59.000000000 +0100
  93. @@ -7,10 +7,10 @@
  94. rm -f improcess gepns core pbm2png clip generate_font arrow
  95. improcess: improcess.c
  96. - gcc -o improcess $(CFLAGS) $(LDFLAFGS) -lpng improcess.c
  97. + gcc -o improcess $(CFLAGS) $(LDFLAFGS) -lpng -lz -lm improcess.c
  98. pbm2png: pbm2png.c
  99. - gcc -o pbm2png $(CFLAGS) $(LDFLAGS) -lpng pbm2png.c
  100. + gcc -o pbm2png $(CFLAGS) $(LDFLAGS) -lpng -lz -lm pbm2png.c
  101. genps: genps.c
  102. @@ -20,4 +20,4 @@
  103. gcc -o generate_font -lm -lpng -lz $(CFLAGS) $(LDFLAGS) generate_font.c
  104. arrow: arrow.c
  105. - gcc -o arrow $(CFLAGS) $(LDFLAGS) arrow.c -lpng
  106. + gcc -o arrow $(CFLAGS) $(LDFLAGS) arrow.c -lpng -lz -lm
  107. --- links-2.1pre16/graphics/pbm2png.c 2002-05-05 22:47:32.000000000 +0200
  108. +++ links-2.1pre16-hacked/graphics/pbm2png.c 2005-02-24 01:10:24.000000000 +0100
  109. @@ -149,14 +149,14 @@
  110. sprintf(string,"%s%d.html",basename_,index);
  111. f=fopen(string,"w");
  112. - fprintf(f,"<html><head><title>%s</title></head><body bgcolor=\"#000000\" text=\"#00ff00\" link=\"#ffff00\" vlink=\"#00ffff\"
  113. + fprintf(f,"<html><head><title>%s</title></head><body bgcolor=\"#000000\" text=\"#00ff00\" link=\"#ffff00\" vlink=\"#00ffff\"\
  114. alink=\"#ffff00\">\n",titlestring);
  115. fprintf(f,"<h1>%s, Page %d</h1>\n",titlestring,index+pageoffset);
  116. fprintf(f,"<p><table border=0 cellspacing=0 cellpadding=2><tr>");
  117. fprintf(f,"<td valign=\"top\"><table border=0 cellpadding=0 cellspacing=0><tr><td>");
  118. if (index)
  119. {
  120. - fprintf(f,"<a href=\"%s%d.html\"><img src=\"left.png\" border=0
  121. + fprintf(f,"<a href=\"%s%d.html\"><img src=\"left.png\" border=0\
  122. ></a>\n",basename_,index-1);
  123. }
  124. else
  125. @@ -166,17 +166,17 @@
  126. fprintf(f,"</td><td>");
  127. if (index<filenumber-1)
  128. {
  129. - fprintf(f,"<a href=\"%s%d.html\">
  130. + fprintf(f,"<a href=\"%s%d.html\">\
  131. <img src=\"right.png\" border=0></a>\n",basename_,index+1);
  132. }
  133. else
  134. {
  135. fprintf(f,"<img src=\"right.png\" border=0>\n");
  136. }
  137. - fprintf(f,"</td></tr><tr><td colspan=2><a href=\"index.html\">
  138. + fprintf(f,"</td></tr><tr><td colspan=2><a href=\"index.html\">\
  139. <img src=\"idx.png\" border=0 ></a></td>");
  140. fprintf(f,"</tr></table>");
  141. - fprintf(f,"</td><td><img src=\"%s%d.png\" border=\"0\"
  142. + fprintf(f,"</td><td><img src=\"%s%d.png\" border=\"0\"\
  143. ></td>\n</tr></table>",basename_,index);
  144. fprintf(f,"</body></html>");
  145. fclose(f);
  146. @@ -426,7 +426,7 @@
  147. int a,z;
  148. if (argc<7){
  149. - fprintf(stderr,"Usage: pbm2png <hundred_dpi> <basename_> <titlestring>
  150. + fprintf(stderr,"Usage: pbm2png <hundred_dpi> <basename_> <titlestring>\
  151. <bottom_html_code> <pageoffset> <ifname> [starting_filenumber]\n");
  152. return 0;
  153. }
  154. --- links-2.1pre16/language.inc 2005-01-22 21:51:55.000000000 +0100
  155. +++ links-2.1pre16-hacked/language.inc 2005-02-24 00:51:30.000000000 +0100
  156. @@ -513,6 +513,7 @@
  157. { 0, NULL }
  158. };
  159. +#ifdef WANT_NLS
  160. struct translation translation_belarusian [] = {
  161. { 0, NULL },
  162. {T__CHAR_SET, "koi8-ru" },
  163. @@ -16416,6 +16417,8 @@
  164. { 0, NULL }
  165. };
  166. +#endif
  167. +
  168. struct translation_desc translations [] = {
  169. { translation_english },
  170. { translation_belarusian },