# HG changeset patch # User Oleksandr Gavenko # Date 1246212739 -10800 # Node ID cc5593c28a4bdf695237769b0146b2ec9a134587 # Parent 77b173972c5626d2ffd4d64ea43eb665abf13b31 Update .ifo file with author/date/description info. diff -r 77b173972c56 -r cc5593c28a4b Makefile --- a/Makefile Sun Jun 28 20:21:43 2009 +0300 +++ b/Makefile Sun Jun 28 21:12:19 2009 +0300 @@ -31,6 +31,7 @@ %.dict.dz: %.tab tabfile $< + /bin/sh update-ifo.sh $*.ifo install: dist mkdir -p $(dicdir) diff -r 77b173972c56 -r cc5593c28a4b update-ifo.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/update-ifo.sh Sun Jun 28 21:12:19 2009 +0300 @@ -0,0 +1,33 @@ +#!/bin/sh + +help() { + echo "Usage:" + echo " update-ifo.sh .ifo" +} + +if [ x$1 = x ]; then + help + exit 1 +fi + +name=$1 +name=${name%.ifo} +echo $1 +echo $name + +if [ $1 = $name ]; then + echo "Error: file must have .ifo extension." + exit 1 +fi + +if [ ! -e $1 ]; then + echo "Error: file $1 not exist." +fi + +date=`date +%Y-%m-%d` + +echo "author=Oleksandr Gavenko" >>$1 +echo "email=gavenkoa@gmail.com" >>$1 +echo "website=http://gavenkoa.blogspot.com" >>$1 +echo "description=Irregular verbs dictionary with translation to Russian." >>$1 +echo "date=$date" >>$1