source: scripts/native-scripts/temp-vim.sh@ 7ed0e05

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7ed0e05 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
11cd ${SRC}
12LOG=vim-temp.log
13
14unpack_tarball vim-${VIM_VER}
15cd ${PKGDIR}
16
17case ${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 ;;
32esac
33
34
35max_log_init vim ${VIM_VER} "temp (shared)" ${CONFLOGS} ${LOG}
36CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
37./configure --prefix=/usr \
38 >> ${LOGFILE} 2>&1 &&
39echo " o Configure OK" &&
40
41min_log_init ${BUILDLOGS} &&
42#make CPPFLAGS='-DSYS_VIMRC_FILE=\"/etc/vimrc\"' \
43make ${PMFLAGS} ${makeopts} \
44 >> ${LOGFILE} 2>&1 &&
45echo " o Build OK" &&
46
47min_log_init ${INSTLOGS} &&
48make install \
49 >> ${LOGFILE} 2>&1 &&
50echo " o ALL OK" || barf
51
52ln -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.