mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-29 18:37:41 +08:00
optimize jencode tool
This commit is contained in:
parent
649b94dc41
commit
a62898e157
@ -54,7 +54,9 @@ void CAddBOM::ScanAdd(void)
|
||||
const char* pFile;
|
||||
while ((pFile = scan.next_file(true)) != NULL) {
|
||||
acl::string path(pFile);
|
||||
if (path.end_with(".c") || path.end_with(".h") ||
|
||||
if (path.end_with("resource.h", false)) {
|
||||
logger(">>skip file: %s", pFile);
|
||||
} else if (path.end_with(".c") || path.end_with(".h") ||
|
||||
path.end_with(".cpp") || path.end_with(".cxx") ||
|
||||
path.end_with(".hpp") || path.end_with(".hxx") ||
|
||||
path.end_with(".java") || path.end_with(".txt") ||
|
||||
|
@ -55,7 +55,9 @@ void CDelBOM::ScanDel(void)
|
||||
const char* pFile;
|
||||
while ((pFile = scan.next_file(true)) != NULL) {
|
||||
acl::string path(pFile);
|
||||
if (path.end_with(".c") || path.end_with(".h") ||
|
||||
if (path.end_with("resource.h", false)) {
|
||||
logger(">>skip file: %s", pFile);
|
||||
} else if (path.end_with(".c") || path.end_with(".h") ||
|
||||
path.end_with(".cpp") || path.end_with(".cxx") ||
|
||||
path.end_with(".hpp") || path.end_with(".hxx") ||
|
||||
path.end_with(".java") || path.end_with(".txt") ||
|
||||
|
@ -49,8 +49,9 @@ bool CGb2Utf8::TransformPath(const char *path_from, const char *path_to)
|
||||
const char* pFile;
|
||||
while ((pFile = scan.next_file(true)) != NULL) {
|
||||
acl::string path(pFile);
|
||||
|
||||
if (path.end_with(".c") || path.end_with(".h") ||
|
||||
if (path.end_with("resource.h", false)) {
|
||||
logger(">>skip file: %s", pFile);
|
||||
} else if (path.end_with(".c") || path.end_with(".h") ||
|
||||
path.end_with(".cpp") || path.end_with(".cxx") ||
|
||||
path.end_with(".hpp") || path.end_with(".hxx") ||
|
||||
path.end_with(".java") || path.end_with(".txt") ||
|
||||
|
@ -362,7 +362,8 @@ int main(int argc, char* argv[])
|
||||
acl::acl_cpp_init();
|
||||
acl::log::stdout_open(true);
|
||||
|
||||
if (!libssl_path.empty() && !access(libssl_path.c_str(), R_OK)) {
|
||||
if (!libssl_path.empty()
|
||||
&& !access(libssl_path.c_str(), R_OK)) {
|
||||
// 设置 libpolarssl.so 库全路径
|
||||
acl::polarssl_conf::set_libpath(libssl_path);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user