3 # pinosaur's blog script
5 blog_index_file="blogindex.html"
6 rolling_file="rolling.html"
7 blog_template_file="template.html"
10 [ ! -z "$EDITOR" ] && EDITOR="vim"
33 # check to see if all required files are present
34 [ -f $blog_index_file ] || echo "missing $blog_index_file"
35 [ -f $rolling_file ] || echo "missing $rolling_file"
36 [ -f $blog_template_file ] || echo "missing $blog_template_file"
38 # possibly also check to see if index and rolling have the proper headers
41 # check if blog dir exists
42 [ ! -d $data_dir ] && echo "initing blog" && mkdir -p "$data_dir/drafts" \
43 && touch "$data_dir/database"
48 p|publish) echo "publish";;
49 d|delete) echo "delete";;
50 D|purge) echo "purge";;