aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Readme.textile4
-rwxr-xr-xnew6
2 files changed, 7 insertions, 3 deletions
diff --git a/Readme.textile b/Readme.textile
index 7f3b23f..fdc1772 100644
--- a/Readme.textile
+++ b/Readme.textile
@@ -9,6 +9,4 @@ make
h2. Creating a new day
-bc. cp -r skel day01
-cd day01
-sed -ie 's/DAY = /DAY = 01/' Makefile
+bc. ./new 01
diff --git a/new b/new
new file mode 100755
index 0000000..4710d71
--- /dev/null
+++ b/new
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+D=$1
+
+cp -r skel day$D
+sed -i "s/DAY = /DAY = ${D}/" day${D}/Makefile