clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since d3d48d51 was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago |
r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure
|
-
Property mode
set to
100755
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | # cross-lfs temporary vim build
|
---|
4 | # -----------------------------
|
---|
5 | # $LastChangedBy$
|
---|
6 | # $LastChangedDate$
|
---|
7 | # $LastChangedRevision$
|
---|
8 | # $HeadURL$
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=vim-temp.log
|
---|
13 |
|
---|
14 | unpack_tarball vim-${VIM_VER}
|
---|
15 | cd ${PKGDIR}
|
---|
16 |
|
---|
17 | case ${VIM_VER} in
|
---|
18 | 6.[23] )
|
---|
19 | # Set location for vimrc and gvimrc files
|
---|
20 | # ( for < 6.1 we use CPPFLAGS to set this )
|
---|
21 | echo "#define SYS_VIMRC_FILE \"${TGT_TOOLS}/etc/vimrc\"" >> src/feature.h
|
---|
22 | echo "#define SYS_GVIMRC_FILE \"${TGT_TOOLS}/etc/gvimrc\"" >> src/feature.h
|
---|
23 | # here for consistency only
|
---|
24 | makeopts=""
|
---|
25 | ;;
|
---|
26 | 6.1 )
|
---|
27 | # Remove checks for -I/usr/local/include when setting CPPFLAGS
|
---|
28 | apply_patch vim-${VIM_VER}
|
---|
29 | # Set location for vimrc file
|
---|
30 | makeopts="CPPFLAGS='-DSYS_VIMRC_FILE=\\\"${TGT_TOOLS}/etc/vimrc\\\"'"
|
---|
31 | ;;
|
---|
32 | esac
|
---|
33 |
|
---|
34 |
|
---|
35 | max_log_init vim ${VIM_VER} "temp (shared)" ${CONFLOGS} ${LOG}
|
---|
36 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
37 | ./configure --prefix=/usr \
|
---|
38 | >> ${LOGFILE} 2>&1 &&
|
---|
39 | echo " o Configure OK" &&
|
---|
40 |
|
---|
41 | min_log_init ${BUILDLOGS} &&
|
---|
42 | #make CPPFLAGS='-DSYS_VIMRC_FILE=\"/etc/vimrc\"' \
|
---|
43 | make ${PMFLAGS} ${makeopts} \
|
---|
44 | >> ${LOGFILE} 2>&1 &&
|
---|
45 | echo " o Build OK" &&
|
---|
46 |
|
---|
47 | min_log_init ${INSTLOGS} &&
|
---|
48 | make install \
|
---|
49 | >> ${LOGFILE} 2>&1 &&
|
---|
50 | echo " o ALL OK" || barf
|
---|
51 |
|
---|
52 | ln -sf vim /usr/bin/vi
|
---|
53 |
|
---|
54 | # Do we want to set up vim config here?
|
---|
55 | # Seems both good and bad to do it here.
|
---|
56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.