Lines Matching refs:commandFile
178 FILE* commandFile;
769 fprintf(commandFile, "p4 edit %s/%s/%s\n", sandboxCmd, dir, "Android.derived.mk");
770 fprintf(commandFile, "cat %s/%s/%s | sed \\\n", sandboxCmd, dir, "Android.derived.mk");
816 fprintf(commandFile, "-e '/%s/ d' ", escaped.c_str());
836 // fprintf(commandFile, "-e '/%s/ d' \\\n", escaped.c_str());
867 fprintf(commandFile, "-e '/%s/ i\\\n_TAB_%s \\\\\n' ",
887 fprintf(commandFile, "-e '/%s/ d' ", escaped.c_str());
916 fprintf(commandFile, "-e '/%s/ s/$/ \\\\/' ", escaped.c_str());
920 fprintf(commandFile, "-e '/%s/ a\\\n_TAB_%s\n' ",
942 fprintf(commandFile, " | sed 's/^_TAB_/\t/' > %s/%s/%s\n", sandboxCmd, dir, "xAndroid.derived.mk");
943 fprintf(commandFile, "mv %s/%s/%s %s/%s/%s\n",
946 fprintf(commandFile, "git add %s/%s\n", dir, "Android.derived.mk");
992 fprintf(commandFile, "p4 edit %s/%s/%s\n", sandboxCmd, dir, "Android.mk");
993 fprintf(commandFile, "cat %s/%s/%s | sed ", sandboxCmd, dir, "Android.mk");
1038 fprintf(commandFile, "-e '/%s/ s/$/ \\\\/' ", escaped.c_str());
1039 fprintf(commandFile, "-e '/%s/ a\\\n_TAB_%s%s\n' ",
1045 fprintf(commandFile, "-e '/%s/ i\\\n_TAB_%s \\\\\n' ",
1061 fprintf(commandFile, "-e '/%s/ d' ", escaped.c_str());
1069 fprintf(commandFile, " | sed 's/^_TAB_/\t/' > %s/%s/%s\n", sandboxCmd, dir, "xAndroid.mk");
1070 fprintf(commandFile, "mv %s/%s/%s %s/%s/%s\n",
1073 fprintf(commandFile, "git add %s/%s\n", dir, "Android.mk");
1208 fprintf(commandFile, "p4 integrate \"%s/%s/%s\" \"%s/%s/%s\"\n", sandboxCmd, workingDir, oldFile,
1210 fprintf(commandFile, "p4 resolve \"%s/%s/%s\"\n", sandboxCmd, renamedDir, renamed);
1212 fprintf(commandFile, "git mv \"%s/%s\" \"%s/%s\"\n", workingDir, oldFile,
1217 fprintf(commandFile, "p4 open \"%s/%s/%s\"\n", sandboxCmd, renamedDir, renamed);
1218 fprintf(commandFile, "merge -q \"%s/%s/%s\" \"%s/%s/%s\" \"%s/%s/%s\"\n",
1223 fprintf(commandFile, "cat \"%s/%s/%s\" | sed -e 's/^<<<<<<<.*$/#ifdef MANUAL_MERGE_REQUIRED/' "
1227 fprintf(commandFile, "mv \"%s/%s/x%s\" \"%s/%s/%s\"\n",
1231 fprintf(commandFile, "git add \"%s/%s\"\n", renamedDir, renamed);
1251 fprintf(commandFile, "cat \"%s/%s/%s\" | sed -e '1 i\\\n#ifdef MANUAL_MERGE_REQUIRED\n' "
1254 fprintf(commandFile, "mv \"%s/%s/x%s\" \"%s/%s/%s\"\n",
1257 fprintf(commandFile, "p4 delete \"%s/%s/%s\"\n", sandboxCmd, workingDir, oldFile);
1259 fprintf(commandFile, "git rm \"%s/%s\"\n", workingDir, oldFile);
1261 fprintf(commandFile, "rm \"%s/%s/%s\"\n", sandboxCmd, workingDir, oldFile);
1268 fprintf(commandFile, "p4 delete \"%s/%s/%s/...\"\n", sandboxCmd, workingDir, oldFile);
1270 fprintf(commandFile, "git rm \"%s/%s/...\"\n", workingDir, oldFile);
1272 fprintf(commandFile, "rm \"%s/%s/%s/...\"\n", sandboxCmd, workingDir, oldFile);
1311 // fprintf(commandFile, "mkdir \"%s/%s\"\n", sandboxCmd, workingDir);
1327 fprintf(commandFile, "cp \"%s/%s/%s\" \"%s/%s/%s\"\n",
1330 fprintf(commandFile, "p4 add \"%s/%s/%s\"\n", sandboxCmd, workingDir, newFile);
1332 fprintf(commandFile, "git add \"%s/%s\"\n", workingDir, newFile);
1374 fprintf(commandFile, "p4 edit \"%s/%s/%s\"\n", sandboxCmd, workingDir, oldFile);
1377 fprintf(commandFile, "merge -q \"%s/%s/%s\" \"%s/%s/%s\" \"%s/%s/%s\"\n",
1382 fprintf(commandFile, "cat \"%s/%s/%s\" | sed -e 's/^<<<<<<<.*$/#ifdef MANUAL_MERGE_REQUIRED/' "
1385 fprintf(commandFile, "mv \"%s/%s/x%s\" \"%s/%s/%s\"\n",
1388 } else fprintf(commandFile, "cp \"%s/%s/%s\" \"%s/%s/%s\"\n", newCmd, workingDir, oldFile ,
1391 fprintf(commandFile, "git add \"%s/%s\"\n", workingDir, oldFile);
1461 fprintf(commandFile, "%s\n", diff);
1739 commandFile = fopen("/dev/null", "w");
1744 fclose(commandFile);
1750 commandFile = fopen(makeShell.c_str(), "w");
1752 fprintf(commandFile, "cd %s\n", sandboxCmd);
1756 fclose(commandFile);
1763 commandFile = fopen(copyOtherShell.c_str(), "w");
1765 fprintf(commandFile, "cd %s\n", sandboxCmd);
1767 fclose(commandFile);
1774 commandFile = fopen(commandShell.c_str(), "w");
1776 fprintf(commandFile, "cd %s\n", sandboxCmd);
1789 fclose(commandFile);