Commit ef6a3cfaf3693dd684790f2a6b4eff1fb5265307
1 parent
8a4ef20b
Exists in
master
and in
9 other branches
Add DDadmin compilation
Showing
4 changed files
with
28 additions
and
2 deletions
Show diff stats
CMakeLists.txt
... | ... | @@ -68,6 +68,7 @@ add_subdirectory(src/DECODERS/nc2nc) |
68 | 68 | add_subdirectory(src/DECODERS/themis) |
69 | 69 | add_subdirectory(src/DATA/TOOLS) |
70 | 70 | add_subdirectory(src/DDSERVICES/TOOLS) |
71 | +add_subdirectory(src/DDADMIN) | |
71 | 72 | add_subdirectory(tests) |
72 | 73 | |
73 | 74 | install(FILES "scripts/StartServer" DESTINATION . PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) |
... | ... |
compilAndInstall.sh
... | ... | @@ -5,7 +5,7 @@ usage=" |
5 | 5 | \n |
6 | 6 | \n Usage : $0 -d <Destination path> -u <DDService URL> -r <DD.res directory path> -b <DDBASE path> [-l <User local directory. By default, it's /usr/local>] [-p <Proxy host:port>] [-a <Proxy user name:password for authentication>] |
7 | 7 | \n |
8 | - \n $0 -d /opt/tools/DDServer -u http://amdadev.fr/DDService -r /var/amda-data/ -b /var/amda-data/DDBASE -l /opt/local -h 'myproxy.fr:9090' -p 'username:userpwd' | |
8 | + \n $0 -d /opt/tools/DDServer -u http://amdadev.fr/DDService -r /var/amda-data/ -b /var/amda-data/DDBASE -l /opt/local -p 'myproxy.fr:9090' -a 'username:userpwd' | |
9 | 9 | \n |
10 | 10 | \n |
11 | 11 | \n ###" |
... | ... |
... | ... | @@ -0,0 +1,25 @@ |
1 | + | |
2 | +PROJECT(DDadmin) | |
3 | + | |
4 | +include_directories( | |
5 | + ${DDCLIENTINCLUDE_DIR} | |
6 | + ${NETCDFINCLUDE_DIR} | |
7 | +) | |
8 | + | |
9 | +#Configuration de l'exécutable | |
10 | +file( | |
11 | + GLOB_RECURSE | |
12 | + source_files | |
13 | + ./* | |
14 | +) | |
15 | + | |
16 | +ADD_EXECUTABLE (DDadmin ${source_files} ) | |
17 | + | |
18 | +target_link_libraries( | |
19 | + DDadmin | |
20 | + ${CRYPT_LIBRARY} | |
21 | + ${DDCLIENTLIBRARY} | |
22 | + ${NETCDFLIBRARY} | |
23 | +) | |
24 | + | |
25 | +install (TARGETS DDadmin DESTINATION bin) | |
... | ... |
src/DDADMIN/DDadmin.c
... | ... | @@ -330,7 +330,7 @@ int GetFileInfo(t_UserFileInfo *fileInfo) |
330 | 330 | { |
331 | 331 | int status; |
332 | 332 | |
333 | - if (((status = nc_inq_unlimdim(fileInfo->ncID, (size_t *)&fileInfo->UserID)) != NC_NOERR) || | |
333 | + if (((status = nc_inq_unlimdim(fileInfo->ncID, (int *)&fileInfo->UserID)) != NC_NOERR) || | |
334 | 334 | ((status = nc_inq_dimlen(fileInfo->ncID, fileInfo->UserID, (size_t *)&fileInfo->MaxRecords)) != NC_NOERR) || |
335 | 335 | ((status = nc_inq_dimid(fileInfo->ncID, NC_USER_LEN_NAME, &fileInfo->UserLenID)) != NC_NOERR) || |
336 | 336 | ((status = nc_inq_dimid(fileInfo->ncID, NC_PWD_LEN_NAME, &fileInfo->PwdLenID)) != NC_NOERR) || |
... | ... |