2006-11-26 15:00:30 -08:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
ttys=($ttys)
|
|
|
|
themes=($themes)
|
|
|
|
|
2014-06-30 05:56:10 -07:00
|
|
|
mkdir -p $out
|
2006-11-26 15:00:30 -08:00
|
|
|
|
2010-06-01 11:30:17 -07:00
|
|
|
defaultName=$(cd $default && ls | grep -v default)
|
|
|
|
echo $defaultName
|
2011-04-06 04:58:13 -07:00
|
|
|
ln -s $default/$defaultName $out/$defaultName
|
|
|
|
ln -s $defaultName $out/default
|
2006-11-26 15:00:30 -08:00
|
|
|
|
|
|
|
for ((n = 0; n < ${#ttys[*]}; n++)); do
|
|
|
|
tty=${ttys[$n]}
|
|
|
|
theme=${themes[$n]}
|
|
|
|
|
|
|
|
echo "TTY $tty -> $theme"
|
|
|
|
|
2010-06-01 11:30:17 -07:00
|
|
|
if [ "$theme" != default ]; then
|
|
|
|
themeName=$(cd $theme && ls | grep -v default)
|
|
|
|
ln -sfn $theme/$themeName $out/$themeName
|
|
|
|
else
|
|
|
|
themeName=default
|
|
|
|
fi
|
2006-11-26 15:00:30 -08:00
|
|
|
|
|
|
|
if test -e $out/$tty; then
|
|
|
|
echo "Multiple themes defined for the same TTY!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2006-12-16 10:24:49 -08:00
|
|
|
ln -sfn $themeName $out/$tty
|
2006-11-26 15:00:30 -08:00
|
|
|
done
|