diff options
Diffstat (limited to 'admin/check-doc-strings')
| -rwxr-xr-x | admin/check-doc-strings | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/admin/check-doc-strings b/admin/check-doc-strings index ef4b203cd79..c69ff47ebfb 100755 --- a/admin/check-doc-strings +++ b/admin/check-doc-strings | |||
| @@ -17,7 +17,7 @@ formal parameters, docstrings, and lispref texi. | |||
| 17 | This program is in the public domain.\n"; | 17 | This program is in the public domain.\n"; |
| 18 | 18 | ||
| 19 | die $usage if @ARGV; | 19 | die $usage if @ARGV; |
| 20 | die $usage unless -r "src/alloc.c" && -d "CVS" && -d "lisp"; | 20 | die $usage unless -r "src/alloc.c" && -d ".bzr" && -d "lisp"; |
| 21 | 21 | ||
| 22 | my %texi_funtype; | 22 | my %texi_funtype; |
| 23 | my %texi_arglist; | 23 | my %texi_arglist; |
| @@ -197,10 +197,8 @@ sub Check_function { | |||
| 197 | Show_details $show_details, $function, "@parms", $docstring; | 197 | Show_details $show_details, $function, "@parms", $docstring; |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | my $lisprefdir; | 200 | my $lisprefdir = "doc/lispref"; |
| 201 | if (-d "man/lispref") { $lisprefdir = "man/lispref"; } | 201 | die "Can't find lispref texi directory.\n" unless -d $lisprefdir; |
| 202 | elsif (-d "lispref") { $lisprefdir = "lispref"; } | ||
| 203 | else { die "Can't find lispref texi directory.\n"; } | ||
| 204 | 202 | ||
| 205 | open (FIND, "find $lisprefdir -name '*.texi' -print |") or die; | 203 | open (FIND, "find $lisprefdir -name '*.texi' -print |") or die; |
| 206 | while (my $file = <FIND>) { | 204 | while (my $file = <FIND>) { |