aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/main.c b/main.c
index 13ae3ee..d40244a 100644
--- a/main.c
+++ b/main.c
@@ -40,7 +40,7 @@ void *create_template(void *arg) {
int fd = creat(path, 00644);
FILE *file = fdopen(fd, "w");
switch(path[2]) {
- case 'i':
+ case 'i':
fprintf(file, "#include <stdio.h>\n\nint main() {\n\tprintf(\"Hello world\\n\");\n}");
break;
case 'k':
@@ -82,11 +82,11 @@ int main(int argc, char *argv[]) {
if (argc > 1) {
switch(argv[1][0]) {
case 'r': break;
- case 'b':
- if (argc > 2) {
- mode = BUILD_RELEASE;
+ case 'b':
+ if (argc > 2) {
+ mode = BUILD_RELEASE;
files.f2 = "./bin/release";
- break;
+ break;
}
mode = BUILD; break;
case 'n':
@@ -120,13 +120,13 @@ int main(int argc, char *argv[]) {
printf("Compiling with: \n");
switch (mode) {
case BUILD_RELEASE:
- execl("/usr/bin/make", "make", "release", NULL);
+ execl("/usr/bin/make", "make", "release", NULL);
break;
- case BUILD:
- execl("/usr/bin/make", "make", "debug", NULL);
+ case BUILD:
+ execl("/usr/bin/make", "make", "debug", NULL);
break;
- default:
- execl("/usr/bin/make", "make", "debug", NULL);
+ default:
+ execl("/usr/bin/make", "make", "debug", NULL);
}
}
if (mode == RUN) printf("\n");