+if (not $result or $want_help) {
+ print_usage();
+ exit 0;
+}
+
+
+sub print_usage {
+ print <<_USAGE_;
+$0: reindex MARC bibs and authorities if NOT using Zebra ("NoZebra").
+
+Use this batch job to reindex all biblio and authority
+records in your Koha database. This job is useful
+only if you are NOT using Zebra ('NoZebra'); if you are
+using the 'Zebra'mode, this job should NOT be used.
+
+Parameters:
+ -d Temporary directory for indexing.
+ If not specified, one is automatically
+ created. The export directory
+ is automatically deleted unless
+ you supply the -k switch.
+
+ -s Rebuild "NoZebraIndexes" System Preference
+
+ --help or -h show this message.
+_USAGE_
+} # END of print_usage sub
+
+
+my $commitnum = 1000;
+$commitnum = $commit if ($commit) ;
+