Philip Wittamore hai 9 meses
pai
achega
19b4bc141b
Modificáronse 1 ficheiros con 0 adicións e 31 borrados
  1. 0 31
      blogthis

+ 0 - 31
blogthis

@@ -1,31 +0,0 @@
-#!/bin/sh
-
-# create text, assemble html file, add to articles
-#requires package html-xml-utils for hxselext
-
-ROOT=/home/philip/src/web/wittamore.com
-
-cd $ROOT/.tmp
-TOP="top.html"
-BOTTOM="bottom.html"
-EDITFILE="middle.html"
-DATE=$(date +%Y-%m-%d)
-
-read -p "Enter title: " TITLE
-read -e -i "$DATE" -p "Enter date: " input
-
-ARTICLEDATE="${input:-$DATE}"
-YEAR=$(echo $ARTICLEDATE | cut -c 1-4)
-DEST="$ROOT/articles/$YEAR"
-
-echo "<h2>$TITLE</h2>" > $EDITFILE
-echo "<h5>$ARTICLEDATE</h5>" >> $EDITFILE
-
-micro $EDITFILE
-
-TITLE=${TITLE// /-}
-ARTICLE="$TITLE.html"
- 
-cat $TOP $EDITFILE $BOTTOM > $ARTICLE
-mv $ARTICLE $DEST
-echo "saved as $DEST/$ARTICLE"