Switch experiment README to .md
[khome.git] / home / bin / x
CommitLineData
64ec9f23
SK
1#! /bin/sh
2
3set -e;
4
3452aeb7
SK
5README='README.md'
6
0443168a 7name=$(echo "$@" | sed 's/\s\+/-/g');
3690e807
SK
8timestamp=$(date +'%F--%H-%M-%S');
9directory="$HOME/x/$timestamp--$name";
10mkdir -p "$directory";
11cd "$directory";
3452aeb7
SK
12printf '%s\n' "$name" > "$README";
13seq 80 | xargs | sed -E 's/\s*[0-9]+\s*/=/g' >> "$README"
3690e807
SK
14git init >&2
15git commit --allow-empty -m 'Root commit' >&2
16git add . >&2
17git commit -m 'Initial commit' >&2
18echo "$directory";
This page took 0.085138 seconds and 4 git commands to generate.