Mercurial > vim
comparison src/installman.sh @ 5999:03f95f5e311b v7.4.340
updated for version 7.4.340
Problem: Error from sed about illegal bytes when installing Vim.
Solution: Prepend LC_ALL=C. (Itchyny)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 25 Jun 2014 15:02:33 +0200 |
parents | f4f8014d516e |
children | 3f399c28e4af |
comparison
equal
deleted
inserted
replaced
5998:3e343a1168a5 | 5999:03f95f5e311b |
---|---|
41 echo creating $destdir | 41 echo creating $destdir |
42 ./mkinstalldirs $destdir | 42 ./mkinstalldirs $destdir |
43 fi | 43 fi |
44 fi | 44 fi |
45 | 45 |
46 # Note: setting LC_ALL to C is required to avoid illegal byte errors from sed | |
47 # on some systems. | |
48 | |
46 if test $what = "install"; then | 49 if test $what = "install"; then |
47 # vim.1 | 50 # vim.1 |
48 echo installing $destdir/$exename.1 | 51 echo installing $destdir/$exename.1 |
49 sed -e s+/usr/local/lib/vim+$vimloc+ \ | 52 LC_ALL=C sed -e s+/usr/local/lib/vim+$vimloc+ \ |
50 -e s+$vimloc/doc+$helpsubloc+ \ | 53 -e s+$vimloc/doc+$helpsubloc+ \ |
51 -e s+$vimloc/print+$printsubloc+ \ | 54 -e s+$vimloc/print+$printsubloc+ \ |
52 -e s+$vimloc/syntax+$synsubloc+ \ | 55 -e s+$vimloc/syntax+$synsubloc+ \ |
53 -e s+$vimloc/tutor+$tutorsubloc+ \ | 56 -e s+$vimloc/tutor+$tutorsubloc+ \ |
54 -e s+$vimloc/vimrc+$vimrcloc/vimrc+ \ | 57 -e s+$vimloc/vimrc+$vimrcloc/vimrc+ \ |
62 $helpsource/vim$langadd.1 > $destdir/$exename.1 | 65 $helpsource/vim$langadd.1 > $destdir/$exename.1 |
63 chmod $manmod $destdir/$exename.1 | 66 chmod $manmod $destdir/$exename.1 |
64 | 67 |
65 # vimtutor.1 | 68 # vimtutor.1 |
66 echo installing $destdir/$exename""tutor.1 | 69 echo installing $destdir/$exename""tutor.1 |
67 sed -e s+/usr/local/lib/vim+$vimloc+ \ | 70 LC_ALL=C sed -e s+/usr/local/lib/vim+$vimloc+ \ |
68 -e s+$vimloc/tutor+$tutorsubloc+ \ | 71 -e s+$vimloc/tutor+$tutorsubloc+ \ |
69 $helpsource/vimtutor$langadd.1 > $destdir/$exename""tutor.1 | 72 $helpsource/vimtutor$langadd.1 > $destdir/$exename""tutor.1 |
70 chmod $manmod $destdir/$exename""tutor.1 | 73 chmod $manmod $destdir/$exename""tutor.1 |
71 | 74 |
72 # vimdiff.1 | 75 # vimdiff.1 |
74 cp $helpsource/vimdiff$langadd.1 $destdir/$vimdiffname.1 | 77 cp $helpsource/vimdiff$langadd.1 $destdir/$vimdiffname.1 |
75 chmod $manmod $destdir/$vimdiffname.1 | 78 chmod $manmod $destdir/$vimdiffname.1 |
76 | 79 |
77 # evim.1 | 80 # evim.1 |
78 echo installing $destdir/$evimname.1 | 81 echo installing $destdir/$evimname.1 |
79 sed -e s+/usr/local/lib/vim+$vimloc+ \ | 82 LC_ALL=C sed -e s+/usr/local/lib/vim+$vimloc+ \ |
80 -e s+$vimloc/evim.vim+$scriptloc/evim.vim+ \ | 83 -e s+$vimloc/evim.vim+$scriptloc/evim.vim+ \ |
81 $helpsource/evim$langadd.1 > $destdir/$evimname.1 | 84 $helpsource/evim$langadd.1 > $destdir/$evimname.1 |
82 chmod $manmod $destdir/$evimname.1 | 85 chmod $manmod $destdir/$evimname.1 |
83 fi | 86 fi |
84 | 87 |