From b37e0da0b7dc72ddfa513e319ca71b5f5b8aeb7d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 13 Nov 2006 22:13:33 +0100 Subject: Initial import --- packages/CVS/Entries | 3 ++ packages/CVS/Repository | 1 + packages/CVS/Root | 1 + packages/MSDOS/CVS/Entries | 4 ++ packages/MSDOS/CVS/Repository | 1 + packages/MSDOS/CVS/Root | 1 + packages/MSDOS/README | 74 ++++++++++++++++++++++++++++++++ packages/MSDOS/djmake.bat | 22 ++++++++++ packages/MSDOS/ylwrap.pat | 11 +++++ packages/cscope.spec | 65 ++++++++++++++++++++++++++++ packages/uw7/CVS/Entries | 4 ++ packages/uw7/CVS/Repository | 1 + packages/uw7/CVS/Root | 1 + packages/uw7/Prototype | 11 +++++ packages/uw7/cscope_pkg.sh | 98 +++++++++++++++++++++++++++++++++++++++++++ packages/uw7/pkginfo | 6 +++ 16 files changed, 304 insertions(+) create mode 100644 packages/CVS/Entries create mode 100644 packages/CVS/Repository create mode 100644 packages/CVS/Root create mode 100644 packages/MSDOS/CVS/Entries create mode 100644 packages/MSDOS/CVS/Repository create mode 100644 packages/MSDOS/CVS/Root create mode 100644 packages/MSDOS/README create mode 100644 packages/MSDOS/djmake.bat create mode 100644 packages/MSDOS/ylwrap.pat create mode 100644 packages/cscope.spec create mode 100644 packages/uw7/CVS/Entries create mode 100644 packages/uw7/CVS/Repository create mode 100644 packages/uw7/CVS/Root create mode 100644 packages/uw7/Prototype create mode 100755 packages/uw7/cscope_pkg.sh create mode 100644 packages/uw7/pkginfo (limited to 'packages') diff --git a/packages/CVS/Entries b/packages/CVS/Entries new file mode 100644 index 0000000..34d2ce4 --- /dev/null +++ b/packages/CVS/Entries @@ -0,0 +1,3 @@ +D/MSDOS//// +D/uw7//// +/cscope.spec/1.11/Sat Sep 30 08:12:59 2006// diff --git a/packages/CVS/Repository b/packages/CVS/Repository new file mode 100644 index 0000000..9ae870c --- /dev/null +++ b/packages/CVS/Repository @@ -0,0 +1 @@ +cscope/packages diff --git a/packages/CVS/Root b/packages/CVS/Root new file mode 100644 index 0000000..e0eb551 --- /dev/null +++ b/packages/CVS/Root @@ -0,0 +1 @@ +broeker@cscope.cvs.sourceforge.net:/cvsroot/cscope diff --git a/packages/MSDOS/CVS/Entries b/packages/MSDOS/CVS/Entries new file mode 100644 index 0000000..53f6ad7 --- /dev/null +++ b/packages/MSDOS/CVS/Entries @@ -0,0 +1,4 @@ +/README/1.1/Thu Jun 28 15:56:06 2001// +/djmake.bat/1.4/Sat Sep 30 08:12:59 2006/-kb/ +/ylwrap.pat/1.2/Thu Jul 5 13:47:53 2001// +D diff --git a/packages/MSDOS/CVS/Repository b/packages/MSDOS/CVS/Repository new file mode 100644 index 0000000..835e575 --- /dev/null +++ b/packages/MSDOS/CVS/Repository @@ -0,0 +1 @@ +cscope/packages/MSDOS diff --git a/packages/MSDOS/CVS/Root b/packages/MSDOS/CVS/Root new file mode 100644 index 0000000..e0eb551 --- /dev/null +++ b/packages/MSDOS/CVS/Root @@ -0,0 +1 @@ +broeker@cscope.cvs.sourceforge.net:/cvsroot/cscope diff --git a/packages/MSDOS/README b/packages/MSDOS/README new file mode 100644 index 0000000..e026e05 --- /dev/null +++ b/packages/MSDOS/README @@ -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) diff --git a/packages/MSDOS/djmake.bat b/packages/MSDOS/djmake.bat new file mode 100644 index 0000000..260bb11 --- /dev/null +++ b/packages/MSDOS/djmake.bat @@ -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 -- diff --git a/packages/MSDOS/ylwrap.pat b/packages/MSDOS/ylwrap.pat new file mode 100644 index 0000000..f60049d --- /dev/null +++ b/packages/MSDOS/ylwrap.pat @@ -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" diff --git a/packages/cscope.spec b/packages/cscope.spec new file mode 100644 index 0000000..dcb1060 --- /dev/null +++ b/packages/cscope.spec @@ -0,0 +1,65 @@ +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: 15.6 +Release: 1 +Epoch: 1 +License: BSD +Group: Development/Tools +Source: cscope-15.6.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 Oct 01 2006 Hans-Bernhard Broeker +- Changed version number to 15.6 +* Sun Mar 21 2004 Adam Monsen +- 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 +- 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 +- 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 +- Version 15.0bl2 (build 2) pre-alpha release +- Fixes and enhancements +- Updated documentation +- Autoconf/automake support +- directory restructuring +* Sun Apr 16 2000 Petr Sorfa +- Initial Open Source release +- Ported to GNU environment +- Created rpm package diff --git a/packages/uw7/CVS/Entries b/packages/uw7/CVS/Entries new file mode 100644 index 0000000..563b97c --- /dev/null +++ b/packages/uw7/CVS/Entries @@ -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 diff --git a/packages/uw7/CVS/Repository b/packages/uw7/CVS/Repository new file mode 100644 index 0000000..cbff275 --- /dev/null +++ b/packages/uw7/CVS/Repository @@ -0,0 +1 @@ +cscope/packages/uw7 diff --git a/packages/uw7/CVS/Root b/packages/uw7/CVS/Root new file mode 100644 index 0000000..e0eb551 --- /dev/null +++ b/packages/uw7/CVS/Root @@ -0,0 +1 @@ +broeker@cscope.cvs.sourceforge.net:/cvsroot/cscope diff --git a/packages/uw7/Prototype b/packages/uw7/Prototype new file mode 100644 index 0000000..e301a03 --- /dev/null +++ b/packages/uw7/Prototype @@ -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 diff --git a/packages/uw7/cscope_pkg.sh b/packages/uw7/cscope_pkg.sh new file mode 100755 index 0000000..9c5e77f --- /dev/null +++ b/packages/uw7/cscope_pkg.sh @@ -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.15.6.pkg cscope +if [ $? -ne 0 ] +then + echo "ERROR: An error occurred while creating the package" >&2 + exit 1 +fi + diff --git a/packages/uw7/pkginfo b/packages/uw7/pkginfo new file mode 100644 index 0000000..d45d6c2 --- /dev/null +++ b/packages/uw7/pkginfo @@ -0,0 +1,6 @@ +PKG="cscope" +NAME="cscope" +VERSION="15.6 UW7.1.1 07/03/2001" +CATEGORY="utilities" +ARCH=i386 +PSTAMP= -- cgit v1.2.3-54-g00ecf