Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- #include <ctype.h>
- #include <unistd.h>
- #include <unistd.h>
- #include "config.h"
- void install_libs(int value, int version) {
- char buf[512];
- const char* LIB_ARRAY[] = {"test.txt", "libc.so.5", "libc_r.so.5", "libgtest.so.0", "libIL.so.2",
- "libjasper.so.4", "libjbig.so.1", "libjpeg.so.11", "liblcms.so.1",
- "libm.so.2", "libm.so.4", "libmd.so.4", "libmng.so.1",
- "libpng15.so.15", "libstdc++.so.4", "libstdc++.so.6", "libtiff.so.4",
- "libz.so.2", "libz.so.4", "libmysqlclient.so.18"
- };
- switch(version) {
- case 32:
- system("cd /usr/libt");
- for(value = 0; value < 19; value++) {
- if( access( LIB_ARRAY[value], F_OK ) != -1 ) {
- if (iLang_config == 1)
- printf("%s Existiert bereits.\n", LIB_ARRAY[value]);
- if (iLang_config == 2)
- printf("%s already exists.\n", LIB_ARRAY[value]);
- } else {
- //snprintf(buf, sizeof(buf), "fetch http://koridev.eu/download/libs/%s", LIB_ARRAY[value]);
- //system(buf) ;
- printf("lol ich fehle %s\n", LIB_ARRAY[value]);
- }
- }
- break;
- case 64:
- system("cd /usr/lib32");
- for(value = 0; value < 19; value++) {
- if( access( LIB_ARRAY[value], F_OK ) != -1 ) {
- if (iLang_config == 1)
- printf("%s Existiert bereits.\n", LIB_ARRAY[value]);
- if (iLang_config == 2)
- printf("%s already exists.\n", LIB_ARRAY[value]);
- } else {
- //snprintf(buf, sizeof(buf), "fetch http://koridev.eu/download/libs/%s", LIB_ARRAY[value]);
- //system(buf) ;
- }
- }
- break;
- }
- }
- void lib_version() {
- load_cofig_version();
- switch (iVersion_config) {
- case 1:
- install_libs(1, 32);
- break;
- case 2:
- install_libs(1, 64);
- break;
- default:
- printf("ERROR\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement