[Bf-committers] #!/bin/sh --geeky
Felix Rabe
bf-committers@blender.org
Tue, 31 Dec 2002 21:58:35 +0100
# -*- mode: sh; -*-
# Copyright (C) never by nobody. Eat it if you like.
# WARNING: NEVER TESTED! & change variables below
# Also, there's a terribly lot you can add. Really ;o)
# Usage: start it in a console and stay awake to celebrate every hour.
# Short description:
# - wait 3570 seconds
# - print a warning (!!! CAUTION !!!) for 10 seconds, blinking
# - print a countdown for 10 seconds (10 to 1) and beep
# - print "!!! A HAPPY NEW YEAR xxxx !!! :o)" on the whole screen
# - repeat that for the rest of the world
#####################################
# VARIABLES TO CHANGE
initseconds=100
timezones=15 # I'm very unsure about this... it's a guess...
year=2003
#####################################
scriptbeep() {
echo -e "\a"
}
wholescreen() {
clear
for x in `seq 24` ; do
echo "$@"
done
}
countdown() {
clear
for x in `seq 10 1` ; do
scriptbeep
echo $x
sleep 1
done
}
clear
sleep $initseconds
for x in `seq $timezones` ; do
scriptbeep
for x in `seq 5` ; do
wholescreen "!!! CAUTION !!!"
sleep 1
clear
sleep 1
done
countdown
scriptbeep
wholescreen "!!! A HAPPY NEW YEAR $year !!! :o)"
sleep 10
clear
sleep 3570
done