diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-04-08 12:40:30 -0400 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-04-09 10:21:36 -0400 |
| commit | 9282e95e8844afe856ba76ceb6d2c3010df8bb1a (patch) | |
| tree | e35affc89b20324371381e079f7cb5f8a06aa81b /data/helper | |
| parent | 2b5d4232879dc74491dabf54a0ddc958d66ebcec (diff) | |
| download | aoc2020-zig-master.tar.gz aoc2020-zig-master.zip | |
Diffstat (limited to 'data/helper')
| -rw-r--r-- | data/helper/config | 13 | ||||
| -rwxr-xr-x | data/helper/init.sh | 12 | ||||
| -rwxr-xr-x | data/helper/scripts/build | 7 | ||||
| -rwxr-xr-x | data/helper/scripts/run | 4 | ||||
| -rwxr-xr-x | data/helper/scripts/test | 7 | ||||
| -rw-r--r-- | data/helper/template/main.zig | 16 |
6 files changed, 0 insertions, 59 deletions
diff --git a/data/helper/config b/data/helper/config deleted file mode 100644 index ea85a1d..0000000 --- a/data/helper/config +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# year you are solving problems for -export AOCYEAR=2020 - -# directory you want day directories to be prepared in (format: src/dayN/..) -export SRCDIR="src" - -# specify what files to copy to your day directory on prepare -export TEMPLATE_DIR="data/helper/template" -export TEMPLATE_FILES=" -main.zig:main.zig -" diff --git a/data/helper/init.sh b/data/helper/init.sh deleted file mode 100755 index 4553fb7..0000000 --- a/data/helper/init.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -REPOROOT=$(git rev-parse --show-toplevel) - -set -e - -ln -sf "$REPOROOT/data/helper/config" "$REPOROOT/helper/data/config" -for f in "$REPOROOT/data/helper/scripts"/*; do - ln -sf "$f" "$REPOROOT/helper/scripts" -done - -echo "done" diff --git a/data/helper/scripts/build b/data/helper/scripts/build deleted file mode 100755 index e7b4f7c..0000000 --- a/data/helper/scripts/build +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -[ ! -e "$SOLUTIONS_ROOT/cache" ] && mkdir "$SOLUTIONS_ROOT/cache" -zig build-exe --cache-dir "$SOLUTIONS_ROOT/cache" \ - --pkg-begin "console8" "$SOLUTIONS_ROOT/lib/console8.zig" --pkg-end \ - --pkg-begin "aoc" "$SOLUTIONS_ROOT/lib/aoc.zig" --pkg-end \ - main.zig diff --git a/data/helper/scripts/run b/data/helper/scripts/run deleted file mode 100755 index fde940f..0000000 --- a/data/helper/scripts/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -[ ! -e "main" ] && $HELPER_ROOT/scripts/build -$PWD/main $@ diff --git a/data/helper/scripts/test b/data/helper/scripts/test deleted file mode 100755 index 945f226..0000000 --- a/data/helper/scripts/test +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -[ ! -e "$SOLUTIONS_ROOT/cache" ] && mkdir "$SOLUTIONS_ROOT/cache" -zig test --cache-dir "$SOLUTIONS_ROOT/cache" \ - --pkg-begin "console8" "$SOLUTIONS_ROOT/lib/console8.zig" --pkg-end \ - --pkg-begin "aoc" "$SOLUTIONS_ROOT/lib/aoc.zig" --pkg-end \ - main.zig diff --git a/data/helper/template/main.zig b/data/helper/template/main.zig deleted file mode 100644 index 9e409ef..0000000 --- a/data/helper/template/main.zig +++ /dev/null @@ -1,16 +0,0 @@ -const std = @import("std"); -const aoc = @import("aoc"); - -fn part1(allocator: *std.mem.Allocator, input: []u8, args: [][]u8) !void { - var answer: u32 = 0; - - std.debug.print("{}\n", .{answer}); -} - -fn part2(allocator: *std.mem.Allocator, input: []u8, args: [][]u8) !void { - var answer: u32 = 0; - - std.debug.print("{}\n", .{answer}); -} - -pub const main = aoc.gen_main(part1, part2); |
