Subversion Repositories RepoView

Rev

Rev 3 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 13
Line 1... Line 1...
1
/* $Id: sanity.c 3 2024-08-20 21:05:24Z nishi $ */
1
/* $Id: sanity.c 13 2024-08-21 12:31:40Z nishi $ */
2
 
2
 
3
#include "rv_sanity.h"
3
#include "rv_sanity.h"
4
 
4
 
5
#include "rv_version.h"
5
#include "rv_version.h"
6
#include "rv_util.h"
6
#include "rv_util.h"
Line 47... Line 47...
47
	bool sane = true;
47
	bool sane = true;
48
 
48
 
49
	bool svnlook = rv_find_executable("svnlook");
49
	bool svnlook = rv_find_executable("svnlook");
50
	bool svnadmin = rv_find_executable("svnadmin");
50
	bool svnadmin = rv_find_executable("svnadmin");
51
	bool htpasswd = rv_find_executable("htpasswd");
51
	bool htpasswd = rv_find_executable("htpasswd");
-
 
52
	bool enscript = rv_find_executable("enscript");
52
 
53
 
53
	if(!svnlook) sane = false;
54
	if(!svnlook) sane = false;
54
	if(!svnadmin) sane = false;
55
	if(!svnadmin) sane = false;
55
	if(!htpasswd) sane = false;
56
	if(!htpasswd) sane = false;
-
 
57
	if(!enscript) sane = false;
56
 
58
 
57
	if(!sane) {
59
	if(!sane) {
58
		rv_error_http();
60
		rv_error_http();
59
		if(!svnlook) printf("svnlook not found\n");
61
		if(!svnlook) printf("svnlook not found\n");
60
		if(!svnadmin) printf("svnadmin not found\n");
62
		if(!svnadmin) printf("svnadmin not found\n");
61
		if(!htpasswd) printf("htpasswd not found\n");
63
		if(!htpasswd) printf("htpasswd not found\n");
-
 
64
		if(!enscript) printf("enscript not found\n");
62
		exit(1);
65
		exit(1);
63
	}
66
	}
64
}
67
}