easy-build: support creating KDE and Xce CDs

This commit is contained in:
Frans Pop 2008-10-14 08:22:07 +00:00
parent 0861e3903c
commit 6ae6083c9e
1 changed files with 30 additions and 1 deletions

View File

@ -6,7 +6,7 @@ set -e
## See also CONF.sh for the meaning of variables used here.
show_usage() {
echo "Usage: $(basename $0) BC|NETINST|CD|DVD [<ARCH> ...]"
echo "Usage: $(basename $0) [-d kde|xfce] BC|NETINST|CD|DVD [<ARCH> ...]"
}
@ -24,6 +24,24 @@ if [ $# -eq 0 ]; then
exit 1
fi
desktop=
if [ "$1" = "-d" ]; then
case $2 in
gnome)
# Ignore (gnome is default)
shift 2
;;
kde|xfce)
desktop=$2
shift 2
;;
*)
show_usage
exit 1
;;
esac
fi
export DISKTYPE="$1"
shift
@ -115,6 +133,17 @@ case $DISKTYPE in
;;
esac
# By default a GNOME CD/DVD is built, but KDE and Xfce are supported too
if [ "$desktop" ] && ([ $DISKTYPE = CD ] || [ $DISKTYPE = DVD ]); then
TASK=tasks/Debian_${CODENAME}-${desktop}
if [ $CODENAME = etch ]; then
KERNEL_PARAMS="tasks=\"${desktop}-desktop, standard\""
else
KERNEL_PARAMS="desktop=$desktop"
fi
DESKTOP=$desktop
export TASK KERNEL_PARAMS DESKTOP
fi
if [ "$LOCAL" ] && [ "$UPDATE_LOCAL" ]; then
echo "Updating Packages files for local repository..."