From e724b8cfd4147b6373c3c523bae08688179df8c1 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Fri, 16 Dec 2022 20:57:35 -0800 Subject: [PATCH] day: Start an example file too --- 2022/day | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/2022/day b/2022/day index 10b7d10..88b4bd6 100755 --- a/2022/day +++ b/2022/day @@ -7,11 +7,13 @@ BASEDIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")") N=$(printf '%02d\n' "$1") input="${BASEDIR}/input/day${N}.txt" +example="${BASEDIR}/input/day${N}-ex.txt" bin="${BASEDIR}/src/bin/day${N}.rs" template="${BASEDIR}/src/bin/dayXX.rs.tmpl" touch "${input}" +touch "${example}" sed "s/dayXX/day${N}/g" "${template}" > "${bin}" -"${EDITOR}" -- "${input}" "${bin}" +"${EDITOR}" -- "${input}" "${example}" "${bin}"