Permalink
Browse files

Change to a new structure to take advantage of github's automagic rea…

…ding of README.markdown files.

Also, a snip commenting on the change, and on this commit message which is commenting on it and the change.
  • Loading branch information...
1 parent 9fc2077 commit 77c8943792a11fb903fa52d03828b4b624e1544b isaacs committed Mar 29, 2009
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,9 @@
+# A New Structure
+
+I updated the structure of my snips.
+
+As part of the commit of this change, I'm going to also have this snip.
+
+Then, I'm going to post a commit message about the change, and about the fact that this snip is commenting on the change.
+
+The metaness of this blog pleases me.
View
7 new.sh
@@ -1,6 +1,7 @@
#!/bin/bash
! [ -d `date '+%Y-%m-%d'` ] && mkdir `date '+%Y-%m-%d'`
read -p "Title? " t
-echo $t | tr '[:upper:]' '[:lower:]' | perl -pi -e 's/[^a-z0-9-]+/-/g;s/-+/-/g;s/^-|-$//g' | read f
-! [ -f "`date '+%Y-%m-%d'`/$f.markdown" ] && echo "# $t" > "`date '+%Y-%m-%d'`/$f.markdown"
-$EDITOR "`date '+%Y-%m-%d'`/$f.markdown"
+<<< $t tr '[:upper:]' '[:lower:]' | perl -pi -e 's/[^a-z0-9-]+/-/g;s/-+/-/g;s/^-|-$//g' | read f
+! [ -d "`date '+%Y-%m-%d'`/$f" ] && mkdir -p "`date '+%Y-%m-%d'`/$f"
+! [ -f "`date '+%Y-%m-%d'`/$f/README.markdown" ] && echo "# $t" > "`date '+%Y-%m-%d'`/$f/README.markdown"
+$EDITOR "`date '+%Y-%m-%d'`/$f/README.markdown"

0 comments on commit 77c8943

Please sign in to comment.