#!/bin/sh set -u install() { if [ -n "${2-}" ]; then PACKAGES="$PACKAGES\n " else PACKAGES="$PACKAGES\n " fi } buildignore() { # Normally, should work, # but https://github.com/openSUSE/obs-build/issues/420 requires a workaround ## Due to "--ignoreignore--" this has no effect either, so workaround the workaround ## by using , which gets ignored by OBS completely... if [ -n "${2-}" ]; then PACKAGES="$PACKAGES\n " PACKAGES="$PACKAGES\n " else PACKAGES="$PACKAGES\n " PACKAGES="$PACKAGES\n " fi } installPattern() { PACKAGES="$PACKAGES\n " } archive() { PACKAGES="$PACKAGES\n " } for distro in leap tumbleweed; do distroname="openSUSE Tumbleweed" bootsplash="bgrt" releaseprefix="openSUSE" if [ "${distro}" = "leap" ]; then distroname="openSUSE Jump %OS_VERSION_ID%" # This changes every few weeks, apparently. #releaseprefix="Leap" fi for flavor in gnome kde xfce x11; do [ "${flavor}" = "xfce" -a "${distro}" = "leap" ] && continue # Prevent creation of livecd-leap-xfce.kiwi uppercaseflavor="$(echo "${flavor}" | tr [:lower:] [:upper:])" if [ "${flavor}" = "x11" ]; then name="${distroname} Rescue CD" else name="${distroname} ${uppercaseflavor} Live" fi PACKAGES="\n " . "$PWD/list-common.sh" PACKAGES="$PACKAGES\n\n " . "$PWD/list-${flavor}.sh" sed "s#@FLAVOR@#${flavor}#g;\ s#@NAME@#${name// /-}#g;\ s#@DISPLAYNAME@#${name}#g;\ s#@VOLID@#${name// /_}#g;\ s#@BOOTSPLASH@#${bootsplash}#g;\ s#@RELEASEPREFIX@#${releaseprefix}#g;\ s#@PACKAGES@#${PACKAGES}#g;" livecd.kiwi.in > livecd-${distro}-${flavor}.kiwi done done