home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.3 / 6.3.084 < prev    next >
Encoding:
Internet Message Format  |  2005-07-20  |  6.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.3.084 (extra)
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.3.084 (extra)
  11. Problem:    Cygwin: compiling with DEBUG doesn't work.  Perl path was ignored.
  12.         Failure when $(OUTDIR) already exists.  "po" makefile is missing.
  13. Solution:   Use changes tested in Vim 7. (Tony Mechelynck)
  14. Files:        src/Make_cyg.mak, src/po/Make_cyg.mak
  15.  
  16.  
  17. *** ../vim-6.3.083/src/Make_cyg.mak    Wed Jun  9 14:56:27 2004
  18. --- src/Make_cyg.mak    Thu Jul 21 13:48:38 2005
  19. ***************
  20. *** 1,6 ****
  21.   #
  22.   # Makefile for VIM on Win32, using Cygnus gcc
  23. ! # Last updated by Dan Sharp.  Last Change: 2004 Apr 23
  24.   #
  25.   # This compiles Vim as a Windows application.  If you want Vim to run as a
  26.   # Cygwin application use the Makefile (just like on Unix).
  27. --- 1,7 ----
  28.   #
  29.   # Makefile for VIM on Win32, using Cygnus gcc
  30. ! # Updated by Dan Sharp and Bram Moolenaar.
  31. ! # Last Change: 2005 Jul 21
  32.   #
  33.   # This compiles Vim as a Windows application.  If you want Vim to run as a
  34.   # Cygwin application use the Makefile (just like on Unix).
  35. ***************
  36. *** 298,304 ****
  37.   EXTRA_OBJS += $(OUTDIR)/netbeans.o $(OUTDIR)/gui_beval.o
  38.   EXTRA_LIBS += -lwsock32
  39.   
  40. ! ifeq (yes, $(DEBUG))
  41.   DEFINES += -DNBDEBUG
  42.   NBDEBUG_DEP = nbdebug.h nbdebug.c
  43.   endif
  44. --- 299,305 ----
  45.   EXTRA_OBJS += $(OUTDIR)/netbeans.o $(OUTDIR)/gui_beval.o
  46.   EXTRA_LIBS += -lwsock32
  47.   
  48. ! ifeq (yes, $(NBDEBUG))
  49.   DEFINES += -DNBDEBUG
  50.   NBDEBUG_DEP = nbdebug.h nbdebug.c
  51.   endif
  52. ***************
  53. *** 336,344 ****
  54. --- 337,347 ----
  55.   ##############################
  56.   ifneq (sh.exe, $(SHELL))
  57.   DEL = rm
  58. + MKDIR = mkdir -p
  59.   DIRSLASH = /
  60.   else
  61.   DEL = del
  62. + MKDIR = mkdir
  63.   DIRSLASH = \\
  64.   endif
  65.   
  66. ***************
  67. *** 421,427 ****
  68.       $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIBS)
  69.   
  70.   $(OUTDIR):
  71. !     mkdir $(OUTDIR)
  72.   
  73.   tags:
  74.       command /c ctags *.c $(INCL)
  75. --- 424,430 ----
  76.       $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIBS)
  77.   
  78.   $(OUTDIR):
  79. !     $(MKDIR) $(OUTDIR)
  80.   
  81.   tags:
  82.       command /c ctags *.c $(INCL)
  83. ***************
  84. *** 429,435 ****
  85.   clean:
  86.       -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
  87.       -rmdir $(OUTDIR)
  88. !     -$(DEL) *.exe
  89.   ifdef PERL
  90.       -$(DEL) if_perl.c
  91.   endif
  92. --- 432,438 ----
  93.   clean:
  94.       -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
  95.       -rmdir $(OUTDIR)
  96. !     -$(DEL) $(EXE) vimrun.exe install.exe uninstal.exe
  97.   ifdef PERL
  98.       -$(DEL) if_perl.c
  99.   endif
  100. ***************
  101. *** 455,462 ****
  102.       $(CC) -c $(CFLAGS) -D__IID_DEFINED__ if_ole.cpp -o $(OUTDIR)/if_ole.o
  103.   
  104.   if_perl.c: if_perl.xs typemap
  105. !     perl $(PERL)/lib/ExtUtils/xsubpp -prototypes -typemap \
  106. !          $(PERL)/lib/ExtUtils/typemap if_perl.xs > $@
  107.   
  108.   $(OUTDIR)/if_perl.o:    if_perl.c $(INCL)
  109.   ifeq (yes, $(USEDLL))
  110. --- 458,466 ----
  111.       $(CC) -c $(CFLAGS) -D__IID_DEFINED__ if_ole.cpp -o $(OUTDIR)/if_ole.o
  112.   
  113.   if_perl.c: if_perl.xs typemap
  114. !     $(PERL)/bin/perl `cygpath -d $(PERL)/lib/ExtUtils/xsubpp` \
  115. !         -prototypes -typemap \
  116. !         `cygpath -d $(PERL)/lib/ExtUtils/typemap` if_perl.xs > $@
  117.   
  118.   $(OUTDIR)/if_perl.o:    if_perl.c $(INCL)
  119.   ifeq (yes, $(USEDLL))
  120. *** ../vim-6.3.083/src/po/Make_cyg.mak    Thu Jul 21 13:47:58 2005
  121. --- src/po/Make_cyg.mak    Thu Jul 21 13:46:39 2005
  122. ***************
  123. *** 0 ****
  124. --- 1,128 ----
  125. + # Makefile for the Vim message translations for Cygwin
  126. + # by Tony Mechelynck <antoine.mechelynck@skynet.be>
  127. + # after Make_ming.mak by
  128. + # Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
  129. + #
  130. + # Read the README_ming.txt file before using it.
  131. + #
  132. + # Use at your own risk but with care, it could even kill your canary.
  133. + #
  134. + ifndef VIMRUNTIME
  135. + VIMRUNTIME = ../../runtime
  136. + endif
  137. + LANGUAGES =    af \
  138. +         ca \
  139. +         cs \
  140. +         cs.cp1250 \
  141. +         de \
  142. +         en_GB \
  143. +         es \
  144. +         fr \
  145. +         it \
  146. +         ja \
  147. +         ja.sjis \
  148. +         ko \
  149. +         no \
  150. +         pl \
  151. +         pl.cp1250 \
  152. +         ru \
  153. +         ru.cp1251 \
  154. +         sk \
  155. +         sk.cp1250 \
  156. +         sv \
  157. +         uk \
  158. +         zh_CN \
  159. +         zh_CN.UTF-8 \
  160. +         zh_CN.cp936 \
  161. +         zh_TW \
  162. +         zh_TW.UTF-8 \
  163. + MOFILES =    af.mo \
  164. +         ca.mo \
  165. +         cs.cp1250.mo \
  166. +         cs.mo \
  167. +         de.mo \
  168. +         en_GB.mo \
  169. +         es.mo \
  170. +         fr.mo \
  171. +         it.mo \
  172. +         ja.mo \
  173. +         ja.sjis.mo \
  174. +         ko.mo \
  175. +         no.mo \
  176. +         pl.cp1250.mo \
  177. +         pl.mo \
  178. +         ru.cp1251.mo \
  179. +         ru.mo \
  180. +         sk.cp1250.mo \
  181. +         sk.mo \
  182. +         sv.mo \
  183. +         uk.mo \
  184. +         zh_CN.UTF-8.mo \
  185. +         zh_CN.cp936.mo \
  186. +         zh_CN.mo \
  187. +         zh_TW.UTF-8.mo \
  188. +         zh_TW.mo \
  189. + PACKAGE = vim
  190. + # Uncomment one of the lines below or modify it to put the path to your
  191. + # gettext binaries
  192. + ifndef GETTEXT_PATH
  193. + #GETTEXT_PATH = C:/gettext.win32/bin/
  194. + #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
  195. + GETTEXT_PATH = /bin/
  196. + endif
  197. + # The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext
  198. + # tools 0.10.37, which use a slightly different .po file format that is not
  199. + # compatible with Solaris (and old gettext implementations) unless these are
  200. + # set.  gettext 0.10.36 will not work!
  201. + MSGFMT = OLD_PO_FILE_INPUT=yes $(GETTEXT_PATH)msgfmt -v
  202. + XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)xgettext
  203. + MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)msgmerge
  204. + # MV = move
  205. + # CP = copy
  206. + # RM = del
  207. + # MKD = mkdir
  208. + MV = mv -f
  209. + CP = cp -f
  210. + RM = rm -f
  211. + MKD = mkdir -p
  212. + .SUFFIXES:
  213. + .SUFFIXES: .po .mo .pot
  214. + .PHONY: first_time all install clean $(LANGUAGES)
  215. + .po.mo:
  216. +     $(MSGFMT) -o $@ $<
  217. + all: $(MOFILES)
  218. + first_time:
  219. +     $(XGETTEXT) --default-domain=$(LANGUAGE) \
  220. +         --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
  221. + $(LANGUAGES):
  222. +     $(XGETTEXT) --default-domain=$(PACKAGE) \
  223. +         --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
  224. +     $(MV) $(PACKAGE).po $(PACKAGE).pot
  225. +     $(CP) $@.po $@.po.orig
  226. +     $(MV) $@.po $@.po.old
  227. +     $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
  228. +     $(RM) $@.po.old
  229. + install: $(MOFILES)
  230. +     for TARGET in $(LANGUAGES); do \
  231. +         $(MKD) $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES ; \
  232. +         $(CP) $$TARGET.mo $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES/$(PACKAGE).mo ; \
  233. +     done
  234. + clean:
  235. +     $(RM) *.mo
  236. +     $(RM) *.pot
  237. *** ../vim-6.3.083/src/version.c    Thu Jul 21 13:02:06 2005
  238. --- src/version.c    Thu Jul 21 13:47:15 2005
  239. ***************
  240. *** 643,644 ****
  241. --- 643,646 ----
  242.   {   /* Add new patch number below this line */
  243. + /**/
  244. +     84,
  245.   /**/
  246.  
  247. -- 
  248. Michael: There is no such thing as a dump question.
  249. Bernard: Sure there is.  For example "what is a core dump?"
  250.  
  251.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  252. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  253. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  254.  \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
  255.