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