Blame SOURCES/dist-2-cscope-indexer-help.patch

2ec332
diff -up ./contrib/xcscope/cscope-indexer.help ./contrib/xcscope/cscope-indexer
2ec332
--- ./contrib/xcscope/cscope-indexer.help	2017-12-07 10:45:07.000000000 -0500
2ec332
+++ ./contrib/xcscope/cscope-indexer	2019-06-24 15:46:31.484852474 -0400
2ec332
@@ -80,6 +80,37 @@ RECURSE=
2ec332
 VERBOSE=
2ec332
 export DIR RECURSE			# Need to pass these to subprocesses
2ec332
 
2ec332
+show_usage() {
2ec332
+
2ec332
+cat << EOF
2ec332
+
2ec332
+     cscope-indexer [ -v ] [-f database_file ] [-i list_file ] [ -l ] [ -r ]
2ec332
+
2ec332
+ where:
2ec332
+
2ec332
+     -f database_file
2ec332
+          Specifies the cscope database file (default: cscope.out).
2ec332
+
2ec332
+     -i list_file
2ec332
+          Specifies the name of the file into which the list of files
2ec332
+          to index is placed (default: cscope.files).
2ec332
+
2ec332
+     -l
2ec332
+          Suppress the generation/updating of the cscope database
2ec332
+          file.  Only a list of files is generated.
2ec332
+
2ec332
+     -r
2ec332
+          Recurse into subdirectories to locate files to index.
2ec332
+          Without this option, only the current directory is
2ec332
+          searched.
2ec332
+
2ec332
+     -v
2ec332
+          Be verbose.  Output simple progress messages.
2ec332
+
2ec332
+EOF
2ec332
+
2ec332
+}
2ec332
+
2ec332
 while [ -n "$1" ]
2ec332
 do
2ec332
     case "$1" in
2ec332
@@ -110,6 +141,10 @@ do
2ec332
     -v)
2ec332
 	VERBOSE=1
2ec332
 	;;
2ec332
+    -h|--help)
2ec332
+	show_usage
2ec332
+	exit 0
2ec332
+	;;
2ec332
     *)
2ec332
 	DIR="$1"
2ec332
 	;;