diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2022-12-03 13:58:29 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2022-12-03 13:58:29 +0200 |
| commit | a35770af4761d621110fc00546990144cdb740e8 (patch) | |
| tree | fdd6253ad45426593d7f0bb5aef9cdcc17f7f82d | |
| parent | 119563dab54a459e8c1932bbde13ea534e7b0c83 (diff) | |
| download | aoc-a35770af4761d621110fc00546990144cdb740e8.tar.xz aoc-a35770af4761d621110fc00546990144cdb740e8.zip | |
Fixed something in the Makefile
| -rw-r--r-- | 2022/Makefile | 2 | ||||
| -rwxr-xr-x | 2022/script.sh | 10 |
2 files changed, 5 insertions, 7 deletions
diff --git a/2022/Makefile b/2022/Makefile index 35528a2..08000ae 100644 --- a/2022/Makefile +++ b/2022/Makefile @@ -2,4 +2,4 @@ all: @g++ main.cpp -o ans.o run: - ./ans < input.txt + ./ans.o < input.txt diff --git a/2022/script.sh b/2022/script.sh index cdb5e16..1bc63c4 100755 --- a/2022/script.sh +++ b/2022/script.sh @@ -1,10 +1,8 @@ #!/bin/sh +read N -for i in {3..25} -do - echo "d" | ~/.scripts/cpp_ps.sh "Day$i" - cp Makefile Day$i - touch "Day$i"/input.txt -done +echo "d" | ~/.scripts/cpp_ps.sh "Day$N" +cp Makefile Day$N +touch "Day$N"/input.txt |
