Bourne Shell powered zero-conf static site generator, gopher log phriendly, & ultra portable - originally created to create simple www web logs turns out to work pretty darn well for phlogs. use. fork. enjoy! (now the Official Repo!) :E
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
710 B

--- vee 2007-09-21 23:13:23.000000000 -0400
+++ /usr/local/bin/vee 2007-11-10 21:36:42.000000000 -0500
@@ -38,6 +38,7 @@
OUTPUT_BOT=output_bottom
# define custom format file
FORMAT_CUSTOM_DEFS=./vee-custom.sh # see example in vee/sample-custom-format/
+FORMAT_CUSTOM_SETUP=setup
#
# vee is a zero configuration, commandline blog tool that
@@ -557,7 +558,7 @@
}
# generates INDEX file if none exists
- setup()
+default_setup()
{ mkdir -p ${DIR} || echo ${DIR} exists...
if [ ! -e ${INDEX} ]; then
echo
@@ -577,6 +578,10 @@
fi
}
+setup() {
+$FORMAT_CUSTOM_SETUP
+}
+
sort_index()
{ #echo sorting ${INDEX} ...
#sort -t";" +0f -1 +1nr ${INDEX} > .${INDEX}.$$.sorted