Home | History | Annotate | Download | only in pkgdata

Lines Matching defs:cmd

497     char *cmd = NULL;
508 cmd = (char *)uprv_malloc(len + BUFFER_PADDING_SIZE);
510 cmd = cmdBuffer;
513 sprintf(cmd, "bash -c \"%s\"", command);
516 sprintf(cmd, "QSH CMD('%s')", command);
525 cmd = (char *)command;
528 printf("pkgdata: %s\n", cmd);
529 int result = system(cmd);
534 if (cmd != cmdBuffer && cmd != command) {
535 uprv_free(cmd);
996 char cmd[LARGE_BUFFER_MAX_SIZE];
1008 sprintf(cmd, "cd %s && %s %s && %s %s %s",
1015 result = runCommand(cmd);
1017 fprintf(stderr, "Error creating symbolic links. Failed command: %s\n", cmd);
1028 /* Use the cmd buffer to store path to import data file to check its existence */
1029 sprintf(cmd, "%s/%s", targetDir, libFileNames[LIB_FILE_OS390BATCH_VERSION]);
1030 if (T_FileStream_file_exists(cmd)) {
1031 sprintf(cmd, "cd %s && %s %s && %s %s %s",
1038 result = runCommand(cmd);
1040 fprintf(stderr, "Error creating symbolic links. Failed command: %s\n", cmd);
1044 sprintf(cmd, "cd %s && %s %s.x && %s %s %s.x",
1051 result = runCommand(cmd);
1053 fprintf(stderr, "Error creating symbolic links. Failed command: %s\n", cmd);
1072 sprintf(cmd, "cd %s && %s %s && %s %s %s",
1080 result = runCommand(cmd);
1087 char cmd[SMALL_BUFFER_MAX_SIZE];
1089 sprintf(cmd, "cd %s && %s %s %s%s%s",
1096 result = runCommand(cmd);
1099 fprintf(stderr, "Error installing library. Failed command: %s\n", cmd);
1104 sprintf(cmd, "cd %s && %s %s.lib %s",
1110 result = runCommand(cmd);
1113 fprintf(stderr, "Error installing library. Failed command: %s\n", cmd);
1117 sprintf(cmd, "cd %s && %s %s %s",
1123 result = runCommand(cmd);
1126 fprintf(stderr, "Error installing library. Failed command: %s\n", cmd);
1132 sprintf(cmd, "%s %s %s",
1137 result = runCommand(cmd);
1140 fprintf(stderr, "Error installing library. Failed command: %s\n", cmd);
1155 char cmd[SMALL_BUFFER_MAX_SIZE] = "";
1167 sprintf(cmd, "%s %s %s", pkgDataFlags[INSTALL_CMD], fileName, installDir);
1169 sprintf(cmd, "%s %s %s %s", WIN_INSTALL_CMD, fileName, installDir, WIN_INSTALL_CMD_FLAGS);
1172 result = runCommand(cmd);
1174 fprintf(stderr, "Failed to install data file with command: %s\n", cmd);
1187 char cmd[SMALL_BUFFER_MAX_SIZE] = "";
1212 sprintf(cmd, "%s %s%s%s %s%s%s",
1217 result = runCommand(cmd);
1219 fprintf(stderr, "Failed to install data file with command: %s\n", cmd);
1236 sprintf(cmd, "%s %s %s %s", WIN_INSTALL_CMD, srcDir, installDir, WIN_INSTALL_CMD_FLAGS);
1237 result = runCommand(cmd);
1239 fprintf(stderr, "Failed to install data file with command: %s\n", cmd);
1251 char cmd[LARGE_BUFFER_MAX_SIZE];
1263 sprintf(cmd, "%s %s %s%s %s%s",
1271 result = runCommand(cmd);
1273 fprintf(stderr, "Error creating archive library. Failed command: %s\n", cmd);
1277 sprintf(cmd, "%s %s%s",
1282 result = runCommand(cmd);
1284 fprintf(stderr, "Error creating archive library. Failed command: %s\n", cmd);
1289 sprintf(cmd, "%s %s%s",
1294 result = runCommand(cmd);
1296 fprintf(stderr, "Error creating archive library. Failed command: %s\n", cmd);
1309 * command may be given to allow for a larger buffer for cmd.
1313 char *cmd = NULL;
1325 cmd = command;
1329 if (cmd == NULL) {
1332 if ((cmd = (char *)uprv_malloc(sizeof(char) * length)) == NULL) {
1338 sprintf(cmd, "%s %s %s%s %s",
1345 result = runCommand(cmd);
1347 sprintf(cmd, "%s %s%s",
1352 result = runCommand(cmd);
1355 if (cmd == NULL) {
1366 cmd = (char *)uprv_malloc(sizeof(char) * length)) == NULL) {
1373 sprintf(cmd, "%s%s%s %s -o %s%s %s %s%s %s %s",
1381 sprintf(cmd, "%s%s%s %s -o %s%s %s %s%s %s %s",
1389 sprintf(cmd, "%s %s%s;%s %s -o %s%s %s %s%s %s %s",
1398 sprintf(cmd, "%s %s -o %s%s %s %s%s %s %s",
1411 result = runCommand(cmd);
1459 sprintf(cmd, "%s %s -o %s %s %s%s %s %s",
1469 result = runCommand(cmd);
1475 fprintf(stderr, "Error generating library file. Failed command: %s\n", cmd);
1479 uprv_free(cmd);
1487 char *cmd;
1499 cmd = (char *)uprv_malloc(sizeof(char) * length);
1500 if (cmd == NULL) {
1505 sprintf(cmd, "%s %s -o %s %s",
1511 result = runCommand(cmd);
1512 uprv_free(cmd);
1514 fprintf(stderr, "Error creating with assembly code. Failed command: %s\n", cmd);
1558 char *cmd;
1588 if ((cmd = (char *)uprv_malloc((listSize + 2) * SMALL_BUFFER_MAX_SIZE)) == NULL) {
1589 fprintf(stderr, "Unable to allocate memory for cmd.\n");
1593 uprv_free(cmd);
1609 sprintf(cmd, "%s %s -o %s %s",
1615 result = runCommand(cmd);
1668 sprintf(cmd, "#include \"%s\"\n", gencmnFile);
1669 T_FileStream_writeLine(icudtAllFile, cmd);
1678 sprintf(cmd, "%s %s -o %s %s",
1683 result = runCommand(cmd);
1685 fprintf(stderr, "Error creating library without assembly code. Failed command: %s\n", cmd);
1705 sprintf(cmd, "%s %s -I. -o %s %s",
1711 result = runCommand(cmd);
1716 fprintf(stderr, "Error creating library without assembly code. Failed command: %s\n", cmd);
1723 result = pkg_generateLibraryFile(targetDir, mode, buffer, cmd, (o->pdsbuild && IN_DLL_MODE(mode)));
1725 result = pkg_generateLibraryFile(targetDir,mode, buffer, cmd);
1730 uprv_free(cmd);
1746 char cmd[LARGE_BUFFER_MAX_SIZE];
1766 sprintf(cmd, "%s\"%s\" \"%s\"",
1818 sprintf(cmd, "%s\"%s\" %s\"%s\" \"%s\" %s",
1828 result = runCommand(cmd, TRUE);
1830 fprintf(stderr, "Error creating Windows DLL library. Failed command: %s\n", cmd);
2096 const char cmd[] = "icu-config --incpkgdatafile";
2105 cmdBuf.append( cmd, status );
2115 fprintf(stdout, "# Calling icu-config: %s\n", cmd);
2119 p = popen(cmd, "r");
2174 char cmd[SMALL_BUFFER_MAX_SIZE];
2175 sprintf(cmd, "%s %s -o %s",
2180 if (runCommand(cmd) == 0){