source: scripts/native-scripts/temp-vim.sh @ 617118d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 617118d was 617118d, checked in by Jim Gifford <clfs@…>, 18 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.