dancing penguin

home page logo

[Home] [Chess] [Gallery] [Links] [Linux] [Palm] [GPG Key]

Bruno, long time ago

Weblog tree...
  • First Ever Anti-Aging Gene Discovered In a Secluded Amish Community
  • What They Don't Tell You About Climate Change
  • Bitcoin Prices Surge 26% in November, Pass $8000
  • Net Neutrality is Essentially Unassailable, Argues Billionaire Barry Diller
  • Upsurge in Big Earthquakes Predicted for 2018
  • jesus christ rusty
Tue, 21 Jan 2003 Blosxom 0+6i-b2 setup

No change compared to 0+5i version. It ran Out Of the Box, after I made the same changes.

I added a small script, as I really want some files to keep the same date. This script looks for files (in blog directories) which names look like a date, then it changes the date of these files with the name itself.
It runs every hour, and could be used with other versions of blosxom as well.
Here is the source of this file:

#! /bin/sh

for i in `find ./blog -name '*.txt' -print`
    DATE=`expr match $i '.*\([0-9]\{12\}\).txt'`
    if [ -z ${DATE} ]
        DATE=`expr match $i '.*\([0-9]\{8\}\).txt'`
        [ ${DATE} ] && "DATE=${DATE}1200"
    [ ${DATE} ] && touch -t ${DATE} "$i"

This script accepts files like "*DATE.txt", where DATE can be in both YYYYMMDDhhmm.txt or YYYYMMDD.txt formats. In the latter case, a default of 12:00 is used for the time.

[/technical/website] | permanent link | Google this