2006-11-27 00:00:30 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
ensureDir $out
|
|
|
|
|
2008-01-03 17:03:11 +01:00
|
|
|
(cd $out && unpackFile $theme)
|
2006-11-27 00:00:30 +01:00
|
|
|
|
|
|
|
themeName=$(cd $out && ls)
|
|
|
|
|
|
|
|
for i in $out/$themeName/config/*.cfg; do
|
|
|
|
echo "converting $i"
|
|
|
|
# Rewrite /etc paths. Also, the file names
|
|
|
|
# config/bootsplash-<RES>.cfg should be <RES>.cfg.
|
|
|
|
sed "s^/etc/bootsplash/themes^$out^g" < $i > $out/$themeName/$(basename $i | sed 's^.*-^^')
|
|
|
|
done
|
|
|
|
|
|
|
|
rm $out/$themeName/config/*.cfg
|
2006-11-27 00:54:49 +01:00
|
|
|
|
|
|
|
ln -s $themeName $out/default
|