cscope-indexer(1)
π cscope-indexer β bestie edition π
okay so this is the manual for cscope-indexer, living in section 1 of the General Commands Manual, and she is that girl. let's get into it π
β¨ NAME β¨
cscope-indexer β a whole script whose entire job is indexing files for cscope. that's it, that's the gig π
πΈ SYNOPSIS πΈ
cscope-indexer [-v] [-f database_file] [-i list_file] [-l] [-r]
look at her. tiny. powerful. slay.
π DESCRIPTION π
so basically this script builds a list of files to index (cscope.out), and then β optionally β uses that list to generate a cscope database. two moods, one script:
- you can use it to just build a list of files, or
- you can use it to build a list and a database.
what it will NOT do is just build a database while skipping the list-of-files step. and honestly? no need, because you can do that by simply calling cscope -b. periodt.
normally cscope does its own indexing, but this script exists so you can force the indexing. when is that the move?
- when you need to recurse into subdirectories π
- when you have SO many files to index (hi, you can run this script from a
cronjob, during the night, while you sleep π) - and it is especially useful for large projects that constantly have source files added and deleted, because by using this script, the changing source files are automatically handled. no cap, it just handles them. π
currently, any paths containing "/CVS/" or "/RCS/" are stripped out (ignored). not invited to the party, sorry babes π«
β OPTIONS β
-f database_fileβ specifies the cscope database file. default iscscope.outπΎ-i list_fileβ specifies the name of the file into which the list of files to index gets placed. default iscscope.filesπ-lβ suppresses the generation/updating of the cscope database file. only a list of files is generated. list-only era β¨-rβ recurse into subdirectories to locate files to index. without this option, only the current directory is searched. go deeper π¦-vβ be verbose. outputs simple progress messages. she's talking, let her talk π£οΈ
π«Ά SEE ALSO π«Ά
cscope(1) β the main character, go say hi
π AUTHOR π
this manual page was written for the Debian GNU/Linux system by Robert Lemmen <robertle@semistable.com> (but may be used by others, of course π₯°). iconic of him honestly.
π and that's the whole page, bestie. go index something. iykyk.
script to index files for c... Β· 30. December 2002 Β· mwah, that's the sign-off, drink some water and run your cron jobs responsibly ππβ¨
π¦ where this page comes from
- debian bookworm: cscope 15.9-1 Β· BSD-2-Clause-style
- debian trixie: cscope 15.9-2 Β· BSD-2-Clause-style
- ubuntu jammy: cscope 15.9-1 Β· BSD-2-Clause-style
- ubuntu noble: cscope 15.9-2 Β· BSD-2-Clause-style
- ubuntu resolute: cscope 15.9-2build1 Β· BSD-2-Clause-style
- ubuntu stonking: cscope 15.9-2build1 Β· BSD-2-Clause-style
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms