mirror of
https://github.com/amix/vimrc
synced 2025-07-08 09:35:00 +08:00
add various usefull plugins from vim.org and sourfeforge
This commit is contained in:
3
vim_plugins_src/cscope-15.7a/packages/CVS/Entries
Normal file
3
vim_plugins_src/cscope-15.7a/packages/CVS/Entries
Normal file
@ -0,0 +1,3 @@
|
||||
/cscope.spec/1.11/Fri Apr 30 12:07:46 2004//
|
||||
D/MSDOS////
|
||||
D/uw7////
|
3
vim_plugins_src/cscope-15.7a/packages/CVS/Entries.Extra
Normal file
3
vim_plugins_src/cscope-15.7a/packages/CVS/Entries.Extra
Normal file
@ -0,0 +1,3 @@
|
||||
/cscope.spec////
|
||||
D/MSDOS////
|
||||
D/uw7////
|
@ -0,0 +1 @@
|
||||
/cscope.spec////
|
2
vim_plugins_src/cscope-15.7a/packages/CVS/Entries.Old
Normal file
2
vim_plugins_src/cscope-15.7a/packages/CVS/Entries.Old
Normal file
@ -0,0 +1,2 @@
|
||||
/cscope.spec/1.11/Fri Apr 30 12:07:46 2004//
|
||||
D
|
1
vim_plugins_src/cscope-15.7a/packages/CVS/Repository
Normal file
1
vim_plugins_src/cscope-15.7a/packages/CVS/Repository
Normal file
@ -0,0 +1 @@
|
||||
cscope/packages
|
1
vim_plugins_src/cscope-15.7a/packages/CVS/Root
Normal file
1
vim_plugins_src/cscope-15.7a/packages/CVS/Root
Normal file
@ -0,0 +1 @@
|
||||
:ssh;username=broeker;hostname=cscope.cvs.sourceforge.net:/cvsroot/cscope
|
4
vim_plugins_src/cscope-15.7a/packages/MSDOS/CVS/Entries
Normal file
4
vim_plugins_src/cscope-15.7a/packages/MSDOS/CVS/Entries
Normal file
@ -0,0 +1,4 @@
|
||||
/README/1.1/Thu Jun 28 15:56:06 2001//
|
||||
/djmake.bat/1.4/Fri Jul 8 11:00:20 2005/-kb/
|
||||
/ylwrap.pat/1.2/Thu Jul 5 13:47:54 2001//
|
||||
D
|
@ -0,0 +1,3 @@
|
||||
/README////
|
||||
/djmake.bat////
|
||||
/ylwrap.pat////
|
@ -0,0 +1 @@
|
||||
cscope/packages/MSDOS
|
1
vim_plugins_src/cscope-15.7a/packages/MSDOS/CVS/Root
Normal file
1
vim_plugins_src/cscope-15.7a/packages/MSDOS/CVS/Root
Normal file
@ -0,0 +1 @@
|
||||
:ssh;username=broeker;hostname=cscope.cvs.sourceforge.net:/cvsroot/cscope
|
74
vim_plugins_src/cscope-15.7a/packages/MSDOS/README
Normal file
74
vim_plugins_src/cscope-15.7a/packages/MSDOS/README
Normal file
@ -0,0 +1,74 @@
|
||||
|
||||
------------------------------------
|
||||
cscope for DOS using DJGPP
|
||||
------------------------------------
|
||||
|
||||
*) You need a rather recent DJGPP version and tools
|
||||
installed. For running cscope on DOS, be sure you
|
||||
have:
|
||||
|
||||
* GNU ed for cscope's automated editing of files. It's quite likely
|
||||
you didn't have this installed, unless you're a collector of Unix
|
||||
tools.
|
||||
|
||||
* an editor or viewer to be used as a child program when you open
|
||||
a match, inside cscope. DJGPP-compiled versions, if possible.
|
||||
|
||||
Choose either
|
||||
|
||||
-- `less' if you're content with viewing the file
|
||||
-- some version of `vi' (VIM, Elvis, or NVI) use cscope in it's
|
||||
"classical" way
|
||||
-- GNU Emacs for the full glory :-)
|
||||
|
||||
Set the environment variable CSCOPE_EDITOR or EDITOR to the name
|
||||
of the editor you want to use. You may want to create a [cscope]
|
||||
section in your djgpp.env file, if you know how to do it.
|
||||
|
||||
For more details what cscope is, and how to use it, see the
|
||||
documentation in the root directory of the cscope sources, or the
|
||||
man page.
|
||||
|
||||
*) For compiling cscope from sources, you need a much more complete
|
||||
collection of GNU development and commandline tools, in addition
|
||||
to the above, and the obvious GCC and binutils:
|
||||
|
||||
* bash
|
||||
* make
|
||||
* flex
|
||||
* bison
|
||||
* sed
|
||||
* patch
|
||||
* fileutils (cp, ln, ...)
|
||||
* textutils (cat)
|
||||
|
||||
Optionally, if you plan to modify the sources.
|
||||
|
||||
* autoconf
|
||||
* automake
|
||||
* Perl
|
||||
|
||||
These are the ones I'm sure you need --- I may have overlooked some.
|
||||
|
||||
The DJGPP source packages is already configured, so you can just
|
||||
run 'make' to get the package. Then
|
||||
|
||||
make install prefix=d:/djgpp"
|
||||
|
||||
(or wherever else your DJGPP is) to install it.
|
||||
|
||||
Or cd to the top source directory and execute the supplied
|
||||
djmake.bat:
|
||||
|
||||
cd d:\djgpp\contrib\cscope
|
||||
packages\msdos\djmake.bat
|
||||
|
||||
and watch it compile. This will be necessary if you made any
|
||||
substantial changes to the sources.
|
||||
|
||||
Have fun with it. In case of problem, mail to djgpp@delorie.com (or the
|
||||
attached Usenet newsgroup) or file a bug report at cscope's page on
|
||||
Sourceforge.net.
|
||||
|
||||
Hans-Bernhard Br"oker (broeker@physik.rwth-aachen.de)
|
||||
(Hans-Bernhard.Broeker@epost.de)
|
22
vim_plugins_src/cscope-15.7a/packages/MSDOS/djmake.bat
Normal file
22
vim_plugins_src/cscope-15.7a/packages/MSDOS/djmake.bat
Normal file
@ -0,0 +1,22 @@
|
||||
@echo off
|
||||
|
||||
if exist src\fscanner.l goto dir_okay
|
||||
echo !!!! Must run this batch file from the main source directory!
|
||||
exit
|
||||
|
||||
:dir_okay
|
||||
|
||||
echo ---- Start by patching the ylwrap script to avoid problems
|
||||
echo with "ln -s":
|
||||
|
||||
if exist src\ylwrap patch -p0 -i packages/MSDOS/ylwrap.pat
|
||||
if exist ylwrap patch -p1 -i packages/MSDOS/ylwrap.pat
|
||||
|
||||
echo ---- Now configure and make it.
|
||||
echo -- NOTE --: this assumes you have pdcurses installed!
|
||||
echo -- NOTE --: Will be using '-f' mode of flex, for faster scanning
|
||||
bash configure
|
||||
make CURSES_LIBS=-lpdcurses LFLAGS="-f8B"
|
||||
|
||||
echo ---- You may now call "make install", if desired.
|
||||
echo -- DONE --
|
11
vim_plugins_src/cscope-15.7a/packages/MSDOS/ylwrap.pat
Normal file
11
vim_plugins_src/cscope-15.7a/packages/MSDOS/ylwrap.pat
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/ylwrap Tue Jun 26 15:23:52 2001
|
||||
+++ src.DOS/ylwrap Thu Jun 28 17:39:31 2001
|
||||
@@ -80,7 +80,7 @@
|
||||
;;
|
||||
*)
|
||||
# Make a symbolic link, hard link or hardcopy.
|
||||
- ln -s ../"$input" . > /dev/null 2>&1 || ln ../"$input" . > /dev/null 2>&1 || cp ../"$input" .
|
||||
+ ln ../"$input" . > /dev/null 2>&1 || cp ../"$input" .
|
||||
;;
|
||||
esac
|
||||
$prog ${1+"$@"} "$input"
|
63
vim_plugins_src/cscope-15.7a/packages/cscope.spec
Normal file
63
vim_plugins_src/cscope-15.7a/packages/cscope.spec
Normal file
@ -0,0 +1,63 @@
|
||||
Summary: cscope is an interactive, screen-oriented tool that allows the user to browse through C source files for specified elements of code.
|
||||
Name: cscope
|
||||
Version: 16.0a
|
||||
Release: 1
|
||||
Epoch: 1
|
||||
License: BSD
|
||||
Group: Development/Tools
|
||||
Source: cscope-16.0a.tar.gz
|
||||
URL: http://cscope.sourceforge.net
|
||||
Buildroot: %{_tmppath}/%{name}-root
|
||||
|
||||
%description
|
||||
cscope is an interactive, screen-oriented tool that allows the user to browse through C source files for specified elements of code.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
%makeinstall
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc TODO COPYING ChangeLog AUTHORS README NEWS INSTALL
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Sun Mar 21 2004 Adam Monsen <adamm@wazamatta.com>
|
||||
- updated packages/cscope.spec to use more RPM macros and shell globs.
|
||||
Should be more generic/robust/up-to-date/etc.
|
||||
* Mon Jul 2 2001 Cscope development team <cscope-devel@lists.sourceforge.net>
|
||||
- Version 15.3 release
|
||||
- New flex scanner
|
||||
- XEmacs support improvements
|
||||
- Vim support improvements
|
||||
- 64 bit fixes
|
||||
- MSDOS support
|
||||
- More editing keys
|
||||
- Webcscope added to contrib
|
||||
* Wed Nov 20 2000 Cscope development team <cscope-devel@lists.sourceforge.net>
|
||||
- Version 15.1 release
|
||||
- New menu and line matching interface
|
||||
- Support for up to 62 (up from 9) matching lines on screen
|
||||
- Numerous fixes
|
||||
- Updated documentation
|
||||
* Tue May 15 2000 Cscope development team <cscope-devel@lists.sourceforge.net>
|
||||
- Version 15.0bl2 (build 2) pre-alpha release
|
||||
- Fixes and enhancements
|
||||
- Updated documentation
|
||||
- Autoconf/automake support
|
||||
- directory restructuring
|
||||
* Sun Apr 16 2000 Petr Sorfa <petrs@sco.com>
|
||||
- Initial Open Source release
|
||||
- Ported to GNU environment
|
||||
- Created rpm package
|
4
vim_plugins_src/cscope-15.7a/packages/uw7/CVS/Entries
Normal file
4
vim_plugins_src/cscope-15.7a/packages/uw7/CVS/Entries
Normal file
@ -0,0 +1,4 @@
|
||||
/Prototype/1.1/Wed Nov 22 15:42:16 2000//
|
||||
/cscope_pkg.sh/1.3/Tue Jul 3 22:09:50 2001//
|
||||
/pkginfo/1.3/Tue Jul 3 22:09:50 2001//
|
||||
D
|
@ -0,0 +1,3 @@
|
||||
/Prototype////
|
||||
/cscope_pkg.sh////
|
||||
/pkginfo////
|
1
vim_plugins_src/cscope-15.7a/packages/uw7/CVS/Repository
Normal file
1
vim_plugins_src/cscope-15.7a/packages/uw7/CVS/Repository
Normal file
@ -0,0 +1 @@
|
||||
cscope/packages/uw7
|
1
vim_plugins_src/cscope-15.7a/packages/uw7/CVS/Root
Normal file
1
vim_plugins_src/cscope-15.7a/packages/uw7/CVS/Root
Normal file
@ -0,0 +1 @@
|
||||
:ssh;username=broeker;hostname=cscope.cvs.sourceforge.net:/cvsroot/cscope
|
11
vim_plugins_src/cscope-15.7a/packages/uw7/Prototype
Normal file
11
vim_plugins_src/cscope-15.7a/packages/uw7/Prototype
Normal file
@ -0,0 +1,11 @@
|
||||
i pkginfo
|
||||
d none /usr ? ? ?
|
||||
d none /usr/local 0755 root bin
|
||||
d none /usr/local/bin 0755 root bin
|
||||
d none /usr/local/man 0755 root bin
|
||||
d none /usr/local/man/man1 0755 root bin
|
||||
! search /usr/local/bin
|
||||
f none /usr/local/bin/cscope 0755 root bin
|
||||
f none /usr/local/bin/ocs 0755 root bin
|
||||
! search /usr/local/man/man1
|
||||
f none /usr/local/man/man1/cscope.1 0644 root bin
|
98
vim_plugins_src/cscope-15.7a/packages/uw7/cscope_pkg.sh
Normal file
98
vim_plugins_src/cscope-15.7a/packages/uw7/cscope_pkg.sh
Normal file
@ -0,0 +1,98 @@
|
||||
#!/bin/sh
|
||||
|
||||
#===========================================================================
|
||||
# Copyright (c) 1998-2000, The Santa Cruz Operation
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
#
|
||||
# *Redistributions of source code must retain the above copyright notice,
|
||||
# this list of conditions and the following disclaimer.
|
||||
#
|
||||
# *Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
#
|
||||
# *Neither name of The Santa Cruz Operation nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
|
||||
# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
|
||||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
# INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
||||
# DAMAGE.
|
||||
# =========================================================================*/
|
||||
|
||||
# This simple script creates an UW7 pkg for cscope
|
||||
# Execute these commands as root
|
||||
|
||||
BINDIR=/usr/local/bin/
|
||||
LIBDIR=/usr/local/lib/
|
||||
MANDIR=/usr/local/man/man1/
|
||||
SPOOLDIR=/var/spool/pkg/
|
||||
|
||||
# Check that the user is root
|
||||
|
||||
if [ `id -un` != "root" ]
|
||||
then
|
||||
echo "ERROR: Need to be root to build package" >&2
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# Check that cscope has been installed
|
||||
if [ ! -f $BINDIR/cscope ]
|
||||
then
|
||||
echo "ERROR: cscope not installed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f $BINDIR/ocs ]
|
||||
then
|
||||
echo "ERROR: ocs not installed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f $MANDIR/cscope.1 ]
|
||||
then
|
||||
echo "ERROR: cscope man page not installed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check that there is no current cscope pkg spooled
|
||||
|
||||
if [ -d $SPOOLDIR/cscope ]
|
||||
then
|
||||
echo "ERROR: cscope is currently spooled in $SPOOLDIR/cscope." >&2
|
||||
echo " Please remove this directory and its contents to" >&2
|
||||
echo " continue." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Make the spool dir entry
|
||||
# Note that cscope must be already installed
|
||||
echo "INFO: Spooling package" >&2
|
||||
pkgmk
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "ERROR: An error occurred during spooling the package" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install the spool dir cscope entry into the package
|
||||
echo "INFO: creating package" >&2
|
||||
pkgtrans -s /var/spool/pkg cscope.16.0a.pkg cscope
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "ERROR: An error occurred while creating the package" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
6
vim_plugins_src/cscope-15.7a/packages/uw7/pkginfo
Normal file
6
vim_plugins_src/cscope-15.7a/packages/uw7/pkginfo
Normal file
@ -0,0 +1,6 @@
|
||||
PKG="cscope"
|
||||
NAME="cscope"
|
||||
VERSION="16.0a UW7.1.1 07/03/2001"
|
||||
CATEGORY="utilities"
|
||||
ARCH=i386
|
||||
PSTAMP=
|
Reference in New Issue
Block a user