2018-11-14 09:33:47 +01:00
|
|
|
#!/bin/sh
|
2020-11-04 10:15:21 +01:00
|
|
|
set -u
|
2018-11-14 09:33:47 +01:00
|
|
|
|
|
|
|
install() {
|
2020-09-07 11:52:17 +02:00
|
|
|
if [ -n "${2-}" ]; then
|
2018-11-14 09:33:47 +01:00
|
|
|
PACKAGES="$PACKAGES\n <package name=\"$1\" arch=\"$2\"/>"
|
|
|
|
else
|
|
|
|
PACKAGES="$PACKAGES\n <package name=\"$1\"/>"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
buildignore() {
|
|
|
|
# Normally, <package name="foo" onlyarch="skipit"/> 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 <ignore/>, which gets ignored by OBS completely...
|
2024-03-12 21:01:40 +01:00
|
|
|
PACKAGES="$PACKAGES\n <!-- OBS-IgnorePackage: $1 -->"
|
|
|
|
PACKAGES="$PACKAGES\n <ignore name=\"$1\"/>"
|
2018-11-14 09:33:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
installPattern() {
|
|
|
|
PACKAGES="$PACKAGES\n <namedCollection name=\"$1\"/>"
|
|
|
|
}
|
|
|
|
|
2019-03-06 15:34:15 +01:00
|
|
|
archive() {
|
|
|
|
PACKAGES="$PACKAGES\n <archive name=\"$1\"/>"
|
|
|
|
}
|
|
|
|
|
2018-11-14 09:33:47 +01:00
|
|
|
for distro in leap tumbleweed; do
|
|
|
|
distroname="openSUSE Tumbleweed"
|
2019-08-16 08:58:45 +02:00
|
|
|
bootsplash="bgrt"
|
2019-10-23 15:40:11 +02:00
|
|
|
releaseprefix="openSUSE"
|
2018-11-14 09:33:47 +01:00
|
|
|
if [ "${distro}" = "leap" ]; then
|
2020-11-27 15:45:35 +01:00
|
|
|
distroname="openSUSE Leap %OS_VERSION_ID%"
|
2019-11-11 10:02:07 +01:00
|
|
|
# This changes every few weeks, apparently.
|
|
|
|
#releaseprefix="Leap"
|
2018-11-14 09:33:47 +01:00
|
|
|
fi
|
|
|
|
|
2019-03-06 15:30:09 +01:00
|
|
|
for flavor in gnome kde xfce x11; do
|
2020-11-04 10:15:21 +01:00
|
|
|
uppercaseflavor="$(echo "${flavor}" | tr [:lower:] [:upper:])"
|
2018-11-14 09:33:47 +01:00
|
|
|
|
2020-09-07 11:52:17 +02:00
|
|
|
if [ "${flavor}" = "x11" ]; then
|
|
|
|
name="${distroname} Rescue CD"
|
|
|
|
else
|
|
|
|
name="${distroname} ${uppercaseflavor} Live"
|
|
|
|
fi
|
2020-11-04 10:15:21 +01:00
|
|
|
|
2020-09-07 11:52:17 +02:00
|
|
|
PACKAGES="\n <!-- list-common.sh -->"
|
|
|
|
. "$PWD/list-common.sh"
|
|
|
|
PACKAGES="$PACKAGES\n\n <!-- list-${flavor}.sh -->"
|
|
|
|
. "$PWD/list-${flavor}.sh"
|
2019-03-06 15:30:09 +01:00
|
|
|
|
2018-11-14 09:33:47 +01:00
|
|
|
sed "s#@FLAVOR@#${flavor}#g;\
|
2019-03-06 15:34:15 +01:00
|
|
|
s#@NAME@#${name// /-}#g;\
|
|
|
|
s#@DISPLAYNAME@#${name}#g;\
|
|
|
|
s#@VOLID@#${name// /_}#g;\
|
2019-08-16 08:58:45 +02:00
|
|
|
s#@BOOTSPLASH@#${bootsplash}#g;\
|
2019-10-23 15:40:11 +02:00
|
|
|
s#@RELEASEPREFIX@#${releaseprefix}#g;\
|
2019-03-06 15:34:15 +01:00
|
|
|
s#@PACKAGES@#${PACKAGES}#g;" livecd.kiwi.in > livecd-${distro}-${flavor}.kiwi
|
2018-11-14 09:33:47 +01:00
|
|
|
done
|
|
|
|
done
|