aboutsummaryrefslogtreecommitdiff
path: root/new
diff options
context:
space:
mode:
Diffstat (limited to 'new')
-rwxr-xr-xnew10
1 files changed, 10 insertions, 0 deletions
diff --git a/new b/new
new file mode 100755
index 0000000..8efe6c9
--- /dev/null
+++ b/new
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ "x$1" == "x" ]; then
+ D=$(date +%d)
+else
+ D=$1
+fi
+
+cp -r skel day$D
+sed -i "s/DAY = /DAY = ${D}/" day${D}/Makefile