2006-11-27 00:00:30 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
ttys=($ttys)
|
|
|
|
themes=($themes)
|
|
|
|
|
|
|
|
ensureDir $out
|
|
|
|
|
|
|
|
default=
|
|
|
|
|
|
|
|
for ((n = 0; n < ${#ttys[*]}; n++)); do
|
|
|
|
tty=${ttys[$n]}
|
|
|
|
theme=${themes[$n]}
|
|
|
|
|
|
|
|
if test "$theme" = "default"; then
|
|
|
|
if test -z "$default"; then
|
|
|
|
echo "No default theme!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
theme=$default
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$default"; then default=$theme; fi
|
|
|
|
|
|
|
|
echo "TTY $tty -> $theme"
|
|
|
|
|
2006-11-27 00:54:49 +01:00
|
|
|
themeName=$(cd $theme && ls | grep -v default)
|
2006-12-16 19:24:49 +01:00
|
|
|
|
|
|
|
ln -sfn $theme/$themeName $out/$themeName
|
2006-11-27 00:00:30 +01:00
|
|
|
|
|
|
|
if test -e $out/$tty; then
|
|
|
|
echo "Multiple themes defined for the same TTY!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2006-12-16 19:24:49 +01:00
|
|
|
ln -sfn $themeName $out/$tty
|
2006-11-27 00:00:30 +01:00
|
|
|
|
|
|
|
done
|