]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.124
- initial import
[packages/vim.git] / 6.2.124
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.124 (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.2.124 (after 6.2.121)(extra)
11 Problem:    Mac: Recursive use of M4FLAGS causes problems.  When running Vim
12             directly it can't find the runtime files.  (Emily Jackson)
13             Using GNU constructs causes warnings with other make programs.
14             (Ronald Schild)
15 Solution:   Use another name for the M4FLAGS variable.
16             Don't remove "Vim.app" from the path.
17             Update the explanation for compiling on the Mac. (Eric Kow)
18             Don't use $(shell ) and $(addprefix ).
19 Files:      src/INSTALLmac.txt, src/Makefile, src/misc1.c
20
21
22 *** ../vim-6.2.123/src/INSTALLmac.txt   Sun May  4 22:40:16 2003
23 --- src/INSTALLmac.txt  Wed Oct 15 16:50:16 2003
24 ***************
25 *** 3,69 ****
26   This file contains instructions for compiling Vim. If you already have an
27   executable version of Vim, you don't need this.
28   
29 ! -----------------------------------------------------------
30   
31 ! Here's a summary of how Vim can be compiled under MacOS, depending on
32 ! the version of MacOS, the compiler and the interface.
33   
34 ! A. Supported compiler and environement
35   
36 !  1. CodeWarrior (pre-MacOS X)
37 !  2. MPW (pre-MacOS X)
38 !  3. Project Builder (MacOS X)
39 !  4. Unix Compiler (MacOS X)
40   
41 ! B. Supported user interface
42   
43 !  1. Original MacOS Toolbox   [Compile with A.1 and A.2]
44 !  2. Carbon MacOS           [Compile with A.3]
45 !  3. X (Athena, GTK, Motif).  [Compile with A.4]
46 !  4. Plain Text                     [Compile with A.4]
47   
48 !  NOTE: Sorry, Cocoa is not expected to be supported for now.
49
50 ! C. Supported "OS" style
51
52 !  1. MacOS                  [Compile as B.1]
53 !  2. MacOS X                [Compile as B.2]
54 !  3. BSD Unix               [Compile as B.2, B.3 and B.4]
55
56 ! -----------------------------------------------------------
57
58 ! Special Consideration
59 ! ---------------------
60
61 ! B.2: Compiling for Carbon
62
63 !  Currently the Carbon version can only be compiled properly under MacOS X.
64 !  The binary created in that way does'nt work under previous version.
65
66 ! B.3: Compiling for X
67
68 !  You need to first install XFree86 and XDarwin.
69 !  Please visit http://www.XDarwin.org
70
71 ! C.1: The MacOS version
72
73 !  Both ':' and '/' supported as path separator.
74
75 ! C.2: The MacOS X version
76
77 !  Only '/' supported as path separator.
78
79 ! C.3: The BSD Unix version
80   
81    Only '/' supported as path separator.
82 -  Shell command can be invoked (:!)
83   
84 ! -----------------------------------------------------------
85   
86 ! A.1: Compiling with CodeWarior
87   
88    1. Expand the resource file:
89 !    - ../src/os_mac.rsr.hqx (to produce ../src/gui_mac.rsrc)
90   
91    2. Expand the project file:
92      - ../src/os_mac.sit.hqx (to produce ../src/vim.mcp)
93 --- 3,74 ----
94   This file contains instructions for compiling Vim. If you already have an
95   executable version of Vim, you don't need this.
96   
97 ! An alternate way of building that Benji Fisher uses can be found here:
98   
99 !       http://macvim.swdev.org/OSX/#Developers
100   
101 ! ----------------------------------------------------------------------------
102 ! Summary
103 ! ----------------------------------------------------------------------------
104   
105 ! 1 MacOS X
106 !  1.1. Carbon interface
107 !  1.2. X (Athena, GTK, Motif) or plain text.  
108   
109 ! 2 MacOS Classic
110 !  2.1. CodeWarrior 
111 !  2.2. MPW 
112   
113 ! NOTE: The Carbon version can only be compiled properly under
114 !       MacOS X.
115   
116 ! ----------------------------------------------------------------------------
117 ! 1 MacOS X
118 ! ----------------------------------------------------------------------------
119   
120 + 1.0 Considerations
121 +  
122    Only '/' supported as path separator.
123   
124 ! 1.1 Carbon interface (default)
125 !  
126 !  You can compile vim with the standard Unix routine:
127 !    cd ..
128 !    ./configure
129 !    make; make install
130 !   
131 !  This will create a working Vim.app application bundle in the src
132 !  directory.  You can move this bundle (the Vim.app directory) anywhere
133 !  you want, for example, /Applications.
134 !  
135 ! 1.2 X-Windows or Plain Text 
136 !  
137 !  If you do not want the Carbon interface, you must explicitly tell
138 !  configure to use a different GUI.
139 !  
140 !   cd ..
141 !   ./configure --enable-gui=gtk2
142 !   make; make install
143 !  
144 !  NOTE: The following GUI options are supported: 
145 !         no (for text), motif, athena, nextaw 
146 !         gtk, gtk2, gnome, gnome2,
147 !   
148 !  NOTE: You need to first install XFree86 and XDarwin.
149 !        Please visit http://www.XDarwin.org
150 !  
151 ! ----------------------------------------------------------------------------
152 ! MacOS 9 
153 ! ----------------------------------------------------------------------------
154   
155 ! Both ':' and '/' supported as path separator.
156   
157 + 2.1: Compiling with CodeWarior
158 +  
159    1. Expand the resource file:
160 !    open ../src/os_mac.rsr.hqx to produce ../src/gui_mac.rsrc:
161 !    % cd vim62/src
162 !    % open -a StuffIt\ Expander os_mac.rsr.hqx
163   
164    2. Expand the project file:
165      - ../src/os_mac.sit.hqx (to produce ../src/vim.mcp)
166 ***************
167 *** 81,88 ****
168   
169    5. Compile
170   
171
172 ! A.2: Compiling with MPW.
173   
174    0. You will need a recent version of the MPW and the Universal Interfaces.
175       You can get both at:
176 --- 86,92 ----
177   
178    5. Compile
179   
180 ! 2.2: Compiling with MPW.
181   
182    0. You will need a recent version of the MPW and the Universal Interfaces.
183       You can get both at:
184 ***************
185 *** 94,100 ****
186       Apple.
187   
188    1. Expand the resource file:
189 !    - ../src/os_mac.rsr.hqx (to produce ../src/gui_mac.rsrc)
190   
191    3. Double click on os_make.make, the MPW will now open in the correct
192       folder and load the CreateVimMake script. Change to the Worksheet
193 --- 98,106 ----
194       Apple.
195   
196    1. Expand the resource file:
197 !    open ../src/os_mac.rsr.hqx to produce ../src/gui_mac.rsrc:
198 !    % cd vim62/src
199 !    % open -a StuffIt\ Expander os_mac.rsr.hqx
200   
201    3. Double click on os_make.make, the MPW will now open in the correct
202       folder and load the CreateVimMake script. Change to the Worksheet
203 ***************
204 *** 103,135 ****
205   
206    4. Select "Build" from the menu (or type command-B). Type the program name
207       into the dialog box.
208
209 - A.3: Compiling with Project Builder.
210
211 -  1. Expand the resource file:
212 -    - ../src/os_mac.rsr.hqx (to produce ../src/gui_mac.rsrc)
213
214 -  2. Open ../src/os_mac.pbproject with Project Builder
215
216 -  3. Choose between C.2 and C.3
217
218 -     In Target ... CCFLAGS use:
219
220 -      -DMACOS_X
221 -        if you want a normal MacOS X version (using os_mac.c)
222
223 -      -DMACOS_X_UNIX
224 -        if you want to use shell commands (using os_unix.c)
225 -        NOTE: some functionality may be missing
226
227 -  4. Hammer the build button in ;)
228
229
230 - A.4: Using the unix compiler.
231
232 -  From Terminal.app you can use "configure" and "make". Refer to INSTALL for
233 -  full detail. The MacOS port is not involve here.
234
235   
236   ------------------------------------------------------
237   
238 --- 109,114 ----
239 *** ../vim-6.2.123/src/Makefile Tue Oct 14 10:36:08 2003
240 --- src/Makefile        Thu Oct 16 12:56:23 2003
241 ***************
242 *** 2307,2315 ****
243   ### MacOS X installation
244   ###
245   ### This creates a runnable Vim.app in the src directory
246 - ###
247 - ### TODO: install the runtime files in Vim.app instead of
248 - ### requiring that they be in a seperate directory.
249   
250   REZ    = /Developer/Tools/Rez
251   RESMRG = /Developer/Tools/ResMerger
252 --- 2307,2312 ----
253 ***************
254 *** 2320,2338 ****
255   VERSION = 6.2
256   
257   ### Common flags
258 ! M4FLAGS = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
259                 -DAPP_VER=$(VERSION) -DICON_APP=$(ICON_APP)
260   
261   ### Icons
262 ! # You can download Douglas Stebila's icons:
263 ! #     http://homepage.mac.com/dstebila/code/vim/
264 ! # TODO: Honestly, why don't we just go ahead and do this? OS 9?
265 ! # If you place those *.icns at src directory, it will be detected by this
266 ! # Makefile automatically, and used for Vim.
267 ! ICON_APP = $(shell if [ -e app.icns ] ; then echo app.icns ; else echo gui_mac.icns ; fi)
268 ! ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi)
269 ! ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi)
270 ! ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT))
271   
272   install_macosx: bundle-dir bundle-executable bundle-info bundle-resource \
273         bundle-language
274 --- 2317,2335 ----
275   VERSION = 6.2
276   
277   ### Common flags
278 ! M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
279                 -DAPP_VER=$(VERSION) -DICON_APP=$(ICON_APP)
280   
281   ### Icons
282 ! ICON_APP = gui_mac.icns
283 ! ICONS = $(RESDIR)/$(ICON_APP)
284
285 ! # If you uncomment the following lines the *.icns in the src directory will be
286 ! # detected by this Makefile automatically, and used for Vim.
287 ! #ICON_APP = $(shell if [ -e app.icns ] ; then echo app.icns ; else echo gui_mac.icns ; fi)
288 ! #ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi)
289 ! #ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi)
290 ! #ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT))
291   
292   install_macosx: bundle-dir bundle-executable bundle-info bundle-resource \
293         bundle-language
294 ***************
295 *** 2347,2353 ****
296         @echo "Creating PkgInfo"
297         @echo -n "APPLVIM!" > $(APPDIR)/Contents/PkgInfo
298         @echo "Creating Info.plist"
299 !       m4 $(M4FLAGS) infplist.xml > $(APPDIR)/Contents/Info.plist
300   
301   bundle-resource: bundle-dir bundle-icons bundle-rsrc
302   
303 --- 2344,2350 ----
304         @echo "Creating PkgInfo"
305         @echo -n "APPLVIM!" > $(APPDIR)/Contents/PkgInfo
306         @echo "Creating Info.plist"
307 !       m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist
308   
309   bundle-resource: bundle-dir bundle-icons bundle-rsrc
310   
311 *** ../vim-6.2.123/src/misc1.c  Sat Sep 27 19:48:50 2003
312 --- src/misc1.c Wed Oct 15 11:30:39 2003
313 ***************
314 *** 20,28 ****
315   
316   static char_u *vim_version_dir __ARGS((char_u *vimdir));
317   static char_u *remove_tail __ARGS((char_u *p, char_u *pend, char_u *name));
318 - #if defined(USE_EXE_NAME) && defined(MACOS_X)
319 - static char_u *remove_tail_with_ext __ARGS((char_u *p, char_u *pend, char_u *name));
320 - #endif
321   static int get_indent_str __ARGS((char_u *ptr, int ts));
322   static int copy_indent __ARGS((int size, char_u       *src));
323   
324 --- 20,25 ----
325 ***************
326 *** 3398,3404 ****
327             if (p == exe_name)
328             {
329                 pend = remove_tail(p, pend, (char_u *)"Contents/MacOS");
330 -               pend = remove_tail_with_ext(p, pend, (char_u *)".app");
331                 pend = remove_tail(p, pend, (char_u *)"build");
332             }
333   # endif
334 --- 3399,3404 ----
335 ***************
336 *** 3544,3573 ****
337         return newend;
338       return pend;
339   }
340
341 - #if defined(USE_EXE_NAME) && defined(MACOS_X)
342 - /*
343 -  * If the string between "p" and "pend" ends in "???.ext/", return "pend" minus
344 -  * the length of "???.ext/".  Otherwise return "pend".
345 -  */
346 -     static char_u *
347 - remove_tail_with_ext(p, pend, ext)
348 -     char_u    *p;
349 -     char_u    *pend;
350 -     char_u    *ext;
351 - {
352 -     int               len = (int)STRLEN(ext) + 1;
353 -     char_u    *newend = pend - len;
354
355 -     if (newend >= p
356 -           && fnamencmp(newend, ext, len - 1) == 0)
357 -       for (;newend != p && !vim_ispathsep(*(newend -1)); newend--);
358
359 -     if (newend == p || vim_ispathsep(*(newend - 1)))
360 -       return newend;
361 -     return pend;
362 - }
363 - #endif
364   
365   /*
366    * Call expand_env() and store the result in an allocated string.
367 --- 3544,3549 ----
368 *** ../vim-6.2.123/src/version.c        Fri Oct 17 12:01:21 2003
369 --- src/version.c       Fri Oct 17 12:05:52 2003
370 ***************
371 *** 639,640 ****
372 --- 639,642 ----
373   {   /* Add new patch number below this line */
374 + /**/
375 +     124,
376   /**/
377
378 -- 
379 hundred-and-one symptoms of being an internet addict:
380 10E. You start counting in hex.
381
382  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
383 ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
384 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
385  \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///
This page took 0.070535 seconds and 3 git commands to generate.