2006-11-27 00:00:30 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
ttys=($ttys)
|
|
|
|
themes=($themes)
|
|
|
|
|
|
|
|
ensureDir $out
|
|
|
|
|
2010-06-01 20:30:17 +02:00
|
|
|
defaultName=$(cd $default && ls | grep -v default)
|
|
|
|
echo $defaultName
|
2011-04-06 13:58:13 +02:00
|
|
|
ln -s $default/$defaultName $out/$defaultName
|
|
|
|
ln -s $defaultName $out/default
|
2006-11-27 00:00:30 +01:00
|
|
|
|
|
|
|
for ((n = 0; n < ${#ttys[*]}; n++)); do
|
|
|
|
tty=${ttys[$n]}
|
|
|
|
theme=${themes[$n]}
|
|
|
|
|
|
|
|
echo "TTY $tty -> $theme"
|
|
|
|
|
2010-06-01 20:30:17 +02:00
|
|
|
if [ "$theme" != default ]; then
|
|
|
|
themeName=$(cd $theme && ls | grep -v default)
|
|
|
|
ln -sfn $theme/$themeName $out/$themeName
|
|
|
|
else
|
|
|
|
themeName=default
|
|
|
|
fi
|
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
|