[Foo2zjs-maintainer] Staying update
me at lucabedogni.it
me at lucabedogni.it
Thu Aug 2 14:09:42 UTC 2007
Hi mates
I wrote a little script, to stay informed about the latest version
of the
foo2zjs package from upstream.
Now it runs on my own machine, and send me an e-mail whenever the package
gets
updated (well, crontab runs it at 00:05 each night), but if you agree I can
send the mail right here on the list.
Here's the script (yes I know, it's not _really_ nice, but it's a 2 minutes
script):
#!/bin/bash
TEMP="/tmp"
NAME="foo2zjs"
VERSIONFILE="$HOME/.foo2zjs_version_retriever"
wget -q -O /tmp/foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
cd $TEMP && tar xvzf $NAME.tar.gz 1> /dev/null
VERSION=`head -n 1 $TEMP/$NAME/ChangeLog | awk '{print $1}'`
if [ ! -f $HOME/.foo2zjs_version_retriever ]; then
echo $VERSION > $VERSIONFILE
else
YEAR=`cat $VERSIONFILE | awk -F "-" '{print $1}'`
MONTH=`cat $VERSIONFILE | awk -F "-" '{print $2}'`
DAY=`cat $VERSIONFILE | awk -F "-" '{print $3}'`
NEWYEAR=`echo $VERSION | awk -F "-" '{print $1}'`
NEWMONTH=`echo $VERSION | awk -F "-" '{print $2}'`
NEWDAY=`echo $VERSION | awk -F "-" '{print $3}'`
if [ $NEWYEAR -ge $YEAR ]; then
if [ $NEWMONTH -ge $MONTH ]; then
if [ $NEWDAY -gt $DAY ]; then
echo $VERSION > $VERSIONFILE
mail me at lucabedogni.it -s "New foo2zjs version available"\
< "$VERSIONFILE"
fi
fi
fi
fi
Cheers
More information about the Foo2zjs-maintainer
mailing list