2014-12-03 09:32:01 -01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-04-30 08:44:33 +00:00
|
|
|
readonly TARGET="$1"
|
|
|
|
|
2014-12-03 09:32:01 -01:00
|
|
|
readonly ARCH=$(uname -m)
|
|
|
|
readonly DATE=$(date +%Y%m%d)
|
|
|
|
readonly BASE_IMG=void-live-${ARCH}-${DATE}.iso
|
|
|
|
readonly E_IMG=void-live-${ARCH}-${DATE}-enlightenment.iso
|
|
|
|
readonly XFCE_IMG=void-live-${ARCH}-${DATE}-xfce.iso
|
|
|
|
readonly MATE_IMG=void-live-${ARCH}-${DATE}-mate.iso
|
2015-01-25 09:49:38 -01:00
|
|
|
readonly CINNAMON_IMG=void-live-${ARCH}-${DATE}-cinnamon.iso
|
2014-12-03 09:32:01 -01:00
|
|
|
|
2014-12-05 00:17:57 -01:00
|
|
|
case "$ARCH" in
|
|
|
|
i686) GRUB="grub";;
|
|
|
|
x86_64) GRUB="grub-x86_64-efi";;
|
|
|
|
esac
|
|
|
|
|
2015-01-25 06:51:39 -01:00
|
|
|
readonly BASE_PKGS="dialog cryptsetup lvm2 mdadm $GRUB"
|
2015-04-30 08:44:33 +00:00
|
|
|
readonly X_PKGS="$BASE_PKGS xorg-minimal xorg-input-drivers xorg-video-drivers setxkbmap xauth font-misc-misc terminus-font cantarell-fonts gnome-themes-standard alsa-plugins-pulseaudio"
|
|
|
|
readonly E_PKGS="$X_PKGS lxdm enlightenment terminology econnman udisks2"
|
|
|
|
readonly XFCE_PKGS="$X_PKGS lxdm xfce4 network-manager-applet gvfs-afc gvfs-mtp gvfs-smb udisks2"
|
|
|
|
readonly MATE_PKGS="$X_PKGS lxdm mate mate-extra network-manager-applet gvfs-afc gvfs-mtp gvfs-smb udisks2"
|
|
|
|
readonly CINNAMON_PKGS="$X_PKGS lxdm cinnamon colord gnome-terminal gvfs-afc gvfs-mtp gvfs-smb udisks2"
|
2014-12-03 09:32:01 -01:00
|
|
|
|
|
|
|
[ ! -x mklive.sh ] && exit 0
|
|
|
|
|
2015-04-30 08:44:33 +00:00
|
|
|
if [ -z "$TARGET" -o $TARGET = base ]; then
|
|
|
|
if [ ! -e $BASE_IMG ]; then
|
|
|
|
./mklive.sh -o $BASE_IMG -p "$BASE_PKGS" $@
|
|
|
|
fi
|
2014-12-03 09:32:01 -01:00
|
|
|
fi
|
2015-04-30 08:44:33 +00:00
|
|
|
if [ -z "$TARGET" -o $TARGET = e ]; then
|
|
|
|
if [ ! -e $E_IMG ]; then
|
|
|
|
./mklive.sh -o $E_IMG -p "$E_PKGS" $@
|
|
|
|
fi
|
2014-12-03 09:32:01 -01:00
|
|
|
fi
|
2015-04-30 08:44:33 +00:00
|
|
|
if [ -z "$TARGET" -o $TARGET = xfce ]; then
|
|
|
|
if [ ! -e $XFCE_IMG ]; then
|
|
|
|
./mklive.sh -o $XFCE_IMG -p "$XFCE_PKGS" $@
|
|
|
|
fi
|
2014-12-03 09:32:01 -01:00
|
|
|
fi
|
2015-04-30 08:44:33 +00:00
|
|
|
if [ -z "$TARGET" -o $TARGET = mate ]; then
|
|
|
|
if [ ! -e $MATE_IMG ]; then
|
|
|
|
./mklive.sh -o $MATE_IMG -p "$MATE_PKGS" $@
|
|
|
|
fi
|
2014-12-03 09:32:01 -01:00
|
|
|
fi
|
2015-04-30 08:44:33 +00:00
|
|
|
if [ -z "$TARGET" -o $TARGET = cinnamon ]; then
|
|
|
|
if [ ! -e $CINNAMON_IMG ]; then
|
|
|
|
./mklive.sh -o $CINNAMON_IMG -p "$CINNAMON_PKGS" $@
|
|
|
|
fi
|
2015-01-25 06:47:25 -01:00
|
|
|
fi
|