Skip to content

Commit

Permalink
added installation and changed name
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Lazzarini committed Jan 26, 2022
1 parent 030a084 commit 08b15e1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ if(${ARGC} GREATER 1)
else()
add_executable(${NAME} "src/${NAME}.f")
endif()
install(TARGETS ${NAME})
endfunction()

add_program(pass1)
add_program(pass2)
add_program(pass3)
add_program(towav c)
add_program(raw2wav c)
add_program(music5 c)
1 change: 1 addition & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Makefile for MUSIC V
# Victor Lazzarini, Jun 08
# For doc purposes only, the software is now built with CMake.

PROGS = pass1 pass2 pass3 towav music5

Expand Down
12 changes: 6 additions & 6 deletions src/music5.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// MUSIC V driver program
// calls pass1, pass2, pass3 and towav to produce an output
// calls pass1, pass2, pass3 and raw2wav to produce an output
// (c) V Lazzarini, 2022
//
// Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -33,21 +33,21 @@ int main(int argc, char *argv[]) {
char command[1024];
sprintf(command, "cp -f %s score", argv[1]);
system(command);
ret = system("./pass1");
ret = system("pass1");
if(ret == 0) {
ret = system("./pass2");
ret = system("pass2");
if(ret == 0) {
ret = system("./pass3");
ret = system("pass3");
if(ret == 0) {
sprintf(command, "./towav %s", argv[2]);
sprintf(command, "raw2wav %s", argv[2]);
system(command);
return 0;
}
else printf("pass 3 failed\n");
} else printf("pass 2 failed\n");
} else printf("pass 1 failed\n");
return 1;
} else printf("usage: %s score output.wav \n", argv[1]);
} else printf("usage: %s score output.wav \n", argv[0]);
return -1;
}

Expand Down
File renamed without changes.

0 comments on commit 08b15e1

Please sign in to comment.