aoc-2019-c

git clone https://git.sinitax.com/sinitax/aoc-2019-c
Log | Files | Refs | README | sfeed.txt

commit cdaaab5d63e1b17f8549bf201b53c74b2473d949
Author: Louis Burda <quent.burda@gmail.com>
Date:   Thu, 17 Dec 2020 01:07:44 +0100

Integrate aoc-helper

Diffstat:
A.gitmodules | 3+++
Adata/config | 15+++++++++++++++
Adata/init-helper.sh | 5+++++
Adata/template/main.c | 7+++++++
Adata/template/makefile | 4++++
Ahelper | 1+
6 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "aoc-helper"] + path = helper + url = git@github.com:Sinitax/aoc-helper diff --git a/data/config b/data/config @@ -0,0 +1,15 @@ +#!/bin/bash + +# year you are solving problems for +export AOCYEAR=2019 + +# 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/template" +export TEMPLATE_FILES=" +main.c:main.c +makefile:makefile +" + diff --git a/data/init-helper.sh b/data/init-helper.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +REPOROOT=$(git rev-parse --show-toplevel) + +ln -sf "$REPOROOT/data/config" "$REPOROOT/helper/data/config" diff --git a/data/template/main.c b/data/template/main.c @@ -0,0 +1,7 @@ + + +int +main() +{ + +} diff --git a/data/template/makefile b/data/template/makefile @@ -0,0 +1,4 @@ + + + +main: main.c diff --git a/helper b/helper @@ -0,0 +1 @@ +Subproject commit 8e9352ce4a608995101857c1877682579027bd4c