diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-util/cscope/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-util/cscope/files')
-rw-r--r-- | dev-util/cscope/files/50cscope-gentoo.el | 34 | ||||
-rw-r--r-- | dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch | 23 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-util/cscope/files/50cscope-gentoo.el b/dev-util/cscope/files/50cscope-gentoo.el new file mode 100644 index 000000000000..08fd4b449352 --- /dev/null +++ b/dev-util/cscope/files/50cscope-gentoo.el @@ -0,0 +1,34 @@ +(add-to-list 'load-path "@SITELISP@") + +(autoload 'cscope-minor-mode "xcscope") +(autoload 'cscope-display-buffer "xcscope" + "Display the *cscope* buffer." t) +(autoload 'cscope-display-buffer-toggle "xcscope" + "Toggle cscope-display-cscope-buffer, which corresponds to +\"Auto display *cscope* buffer\"." t) +(autoload 'cscope-next-symbol "xcscope" + "Move to the next symbol in the *cscope* buffer." t) +(autoload 'cscope-next-file "xcscope" + "Move to the next file in the *cscope* buffer." t) +(autoload 'cscope-prev-symbol "xcscope" + "Move to the previous symbol in the *cscope* buffer." t) +(autoload 'cscope-prev-file "xcscope" + "Move to the previous file in the *cscope* buffer." t) +(autoload 'cscope-pop-mark "xcscope" + "Pop back to where cscope was last invoked." t) +(autoload 'cscope-set-initial-directory "xcscope" + "Set the cscope-initial-directory variable." t) +(autoload 'cscope-unset-initial-directory "xcscope" + "Unset the cscope-initial-directory variable." t) +(autoload 'cscope-find-this-symbol "xcscope" + "Locate a symbol in source code." t) +(autoload 'cscope-find-global-definition "xcscope" + "Find a symbol's global definition." t) +(autoload 'cscope-find-global-definition-no-prompting "xcscope" + "Find a symbol's global definition without prompting." t) + +(defun cscope:hook () + (cscope-minor-mode)) +(add-hook 'c-mode-hook 'cscope:hook) +(add-hook 'c++-mode-hook 'cscope:hook) +(add-hook 'dired-mode-hook 'cscope:hook) diff --git a/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch b/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch new file mode 100644 index 000000000000..6b4c17fe9145 --- /dev/null +++ b/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/269305 + +--- cscope-15.7a-orig/contrib/ocs 2004-06-21 20:13:22.000000000 +0200 ++++ cscope-15.7a/contrib/ocs 2009-05-11 22:33:51.000000000 +0200 +@@ -75,17 +75,10 @@ + + #set the default value for SYSDIR + if [ -z "${SYSDIR}" ]; then +- SYSDIR=/usr/local/lib/cs ++ SYSDIR=/var/lib/cs + echo setting default sysdir + fi + +-#check that SYSDIR exists +-if [ ! -d ${SYSDIR} ]; then +- echo -n $SYSDIR does not exist. +- echo Please create the directory and set SYSDIR appropriately +- exit +-fi +- + # Check that cscope is in PATH + type cscope 1>/dev/null 2>&1 + |