source: scripts/native-scripts/native-vim.sh@ fcf217f

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since fcf217f 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/bash
2
3# cross-lfs native vim build
4# --------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=vim-native.log
13
14set_libdirname
15setup_multiarch
16
17unpack_tarball vim-${VIM_VER}
18cd ${PKGDIR}
19
20case ${VIM_VER} in
21 6.[23] )
22 # Set location for vimrc and gvimrc files
23 # ( for < 6.1 we use CPPFLAGS to set this )
24 echo "#define SYS_VIMRC_FILE \"/etc/vimrc\"" >> src/feature.h
25 echo "#define SYS_GVIMRC_FILE \"/etc/gvimrc\"" >> src/feature.h
26 # here for consistency only
27 makeopts=""
28 ;;
29 6.1 )
30 # Remove checks for -I/usr/local/include when setting CPPFLAGS
31 apply_patch vim-${VIM_VER}
32 # Set location for vimrc file
33 makeopts="CPPFLAGS='-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"'"
34 ;;
35esac
36
37
38max_log_init vim ${VIM_VER} "native (shared)" ${CONFLOGS} ${LOG}
39CC="${CC-gcc} ${ARCH_CFLAGS}" \
40CXX="${CXX-g++} ${ARCH_CFLAGS}" \
41CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
42CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
43./configure --prefix=/usr \
44 >> ${LOGFILE} 2>&1 &&
45echo " o Configure OK" &&
46
47min_log_init ${BUILDLOGS} &&
48make ${PMFLAGS} ${makeopts} \
49 >> ${LOGFILE} 2>&1 &&
50echo " o Build OK" &&
51
52min_log_init ${INSTLOGS} &&
53make install \
54 >> ${LOGFILE} 2>&1 &&
55echo " o ALL OK" || barf
56
57ln -sf vim /usr/bin/vi
Note: See TracBrowser for help on using the repository browser.