From 2ec33252baf6455f32ad632bba9832365446701e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jan 21 2020 21:55:25 +0000 Subject: import cscope-15.9-6.el8 --- diff --git a/SOURCES/cscope-cscope-indexer-help.patch b/SOURCES/cscope-cscope-indexer-help.patch new file mode 100644 index 0000000..08efb2a --- /dev/null +++ b/SOURCES/cscope-cscope-indexer-help.patch @@ -0,0 +1,52 @@ +diff -up ./contrib/xcscope/cscope-indexer.help ./contrib/xcscope/cscope-indexer +--- ./contrib/xcscope/cscope-indexer.help 2017-12-07 10:45:07.000000000 -0500 ++++ ./contrib/xcscope/cscope-indexer 2019-06-24 15:46:31.484852474 -0400 +@@ -80,6 +80,37 @@ RECURSE= + VERBOSE= + export DIR RECURSE # Need to pass these to subprocesses + ++show_usage() { ++ ++cat << EOF ++ ++ cscope-indexer [ -v ] [-f database_file ] [-i list_file ] [ -l ] [ -r ] ++ ++ where: ++ ++ -f database_file ++ Specifies the cscope database file (default: cscope.out). ++ ++ -i list_file ++ Specifies the name of the file into which the list of files ++ to index is placed (default: cscope.files). ++ ++ -l ++ Suppress the generation/updating of the cscope database ++ file. Only a list of files is generated. ++ ++ -r ++ Recurse into subdirectories to locate files to index. ++ Without this option, only the current directory is ++ searched. ++ ++ -v ++ Be verbose. Output simple progress messages. ++ ++EOF ++ ++} ++ + while [ -n "$1" ] + do + case "$1" in +@@ -110,6 +141,10 @@ do + -v) + VERBOSE=1 + ;; ++ -h|--help) ++ show_usage ++ exit 0 ++ ;; + *) + DIR="$1" + ;; diff --git a/SPECS/cscope.spec b/SPECS/cscope.spec index f7098e4..2b8ecbd 100644 --- a/SPECS/cscope.spec +++ b/SPECS/cscope.spec @@ -1,7 +1,7 @@ Summary: C source code tree search and browse tool Name: cscope Version: 15.9 -Release: 4%{?dist} +Release: 6%{?dist} Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz URL: http://cscope.sourceforge.net License: BSD and GPLv2+ @@ -17,6 +17,7 @@ Patch0: cscope-coverity-fixes.patch Patch1: cscope-selftest.patch Patch2: cscope-selftest-repoint.patch Patch3: cscope-version.patch +Patch4: cscope-cscope-indexer-help.patch %define cscope_share_path %{_datadir}/cscope %define xemacs_lisp_path %{_datadir}/xemacs/site-packages/lisp @@ -95,6 +96,12 @@ rm -f %{emacs_lisp_path}/xcscope.el rm -f %{vim_plugin_path}/cctree.vim %changelog +* Tue Jun 25 2019 Neil Horman - 15.9-6 +- Fix covscan warning (bz 1722404) + +* Mon Jun 24 2019 Neil Horman - 15.9-5 +- update help for cscope-indexer (bz 1722404) + * Mon Jun 03 2019 Neil Horman - 15.9-4 - Fix cscope version (bz 1685920)