Subversion Repositories RepoView

Rev

Rev 13 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13 Rev 15
Line 1... Line 1...
1
/* $Id: sanity.c 13 2024-08-21 12:31:40Z nishi $ */
1
/* $Id: sanity.c 15 2024-08-21 15:36:37Z 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
#ifdef USE_ENSCRIPT
52
	bool enscript = rv_find_executable("enscript");
53
	bool enscript = rv_find_executable("enscript");
-
 
54
#endif
-
 
55
	bool rm = rv_find_executable("rm");
53
 
56
 
54
	if(!svnlook) sane = false;
57
	if(!svnlook) sane = false;
55
	if(!svnadmin) sane = false;
58
	if(!svnadmin) sane = false;
56
	if(!htpasswd) sane = false;
59
	if(!htpasswd) sane = false;
-
 
60
#ifdef USE_ENSCRIPT
57
	if(!enscript) sane = false;
61
	if(!enscript) sane = false;
-
 
62
#endif
-
 
63
	if(!rm) sane = false;
58
 
64
 
59
	if(!sane) {
65
	if(!sane) {
60
		rv_error_http();
66
		rv_error_http();
61
		if(!svnlook) printf("svnlook not found\n");
67
		if(!svnlook) printf("svnlook not found\n");
62
		if(!svnadmin) printf("svnadmin not found\n");
68
		if(!svnadmin) printf("svnadmin not found\n");
63
		if(!htpasswd) printf("htpasswd not found\n");
69
		if(!htpasswd) printf("htpasswd not found\n");
-
 
70
#ifdef USE_ENSCRIPT
64
		if(!enscript) printf("enscript not found\n");
71
		if(!enscript) printf("enscript not found\n");
-
 
72
#endif
-
 
73
		if(!rm) printf("rm not found\n");
65
		exit(1);
74
		exit(1);
66
	}
75
	}
67
}
76
}