pkgsrc/time/asclock/files/asclock.sh
wiz df7948804e New category: time. Move many packages here:
misc/cal, misc/cardboard-schedule, misc/ical, misc/plan, misc/py-mxDateTime,
misc/remind, sysutils/logtime, and 19 more from x11.
2000-12-17 23:32:09 +00:00

36 lines
625 B
Bash

#!/bin/sh
#
# $NetBSD: asclock.sh,v 1.1.1.1 2000/12/17 23:32:12 wiz Exp $
args=''
while [ $# -gt 0 ]
do
case $1 in
-lang)
LANG=$2; shift
if [ -z "${LANG}" ]
then
echo "asclock: -lang needs a language option"
quit 1
fi
;;
*)
args="${args} $1"
;;
esac
shift
done
ASCLOCKDIR=@PREFIX@/share/asclock-classic
# default to American English
if [ -z "${LANG}" -o ! -d ${ASCLOCKDIR}/${LANG} ]
then
LANG=en
fi
monthxpm=${ASCLOCKDIR}/${LANG}/month.xpm
weekdayxpm=${ASCLOCKDIR}/${LANG}/weekday.xpm
args="${args} -monthxpm ${monthxpm} -weekdayxpm ${weekdayxpm}"
exec @PREFIX@/libexec/asclock-classic ${args}