diff options
Diffstat (limited to 'x11/asclock/files/asclock.sh')
-rw-r--r-- | x11/asclock/files/asclock.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/x11/asclock/files/asclock.sh b/x11/asclock/files/asclock.sh new file mode 100644 index 00000000000..ea26e28391b --- /dev/null +++ b/x11/asclock/files/asclock.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# +# $NetBSD: asclock.sh,v 1.1 1999/10/28 19:04:57 jlam 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 + +# 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 ${args} |