4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Not all systems have "whoami", resulting in an empty user name.
12 Solution: Use "logname" when possible, "whoami" otherwise. (David Boyce)
16 *** ../vim-6.2.307/src/Makefile Mon Mar 1 21:49:48 2004
17 --- src/Makefile Mon Mar 1 20:03:04 2004
20 -@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@
21 -@if test -n "$(COMPILEDBY)"; then \
22 echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \
23 ! else whoami | tr -d $(NL) >> $@; fi
25 -@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@
26 -@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi
28 -@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@
29 -@if test -n "$(COMPILEDBY)"; then \
30 echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \
31 ! else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi
33 -@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@
34 -@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi
35 *** ../vim-6.2.307/src/version.c Mon Mar 1 21:49:48 2004
36 --- src/version.c Tue Mar 2 14:14:12 2004
40 { /* Add new patch number below this line */
46 "It's so simple to be wise. Just think of something stupid to say
47 and then don't say it." -- Sam Levenson
49 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
50 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
51 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
52 \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///