diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-11-11 16:25:29 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-11-11 16:25:03 +0100 |
commit | 3b74fa43f537f471b1b87741d703f2696ed24510 (patch) | |
tree | 02d37a09f7e4dcbc1412e41ec131d7889f83b5fb /configure.ac | |
parent | db029c5a02880beb262165822a2e833c47569984 (diff) |
Simplify input theme filtering
Change-Id: Iaa96feee79902f780409a19f97fed201793a66ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159319
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 35b654abe1f7..15e7c781e993 100644 --- a/configure.ac +++ b/configure.ac @@ -13498,13 +13498,12 @@ fi WITH_THEMES="" if test "x$with_theme" != "xno"; then - for theme in $with_theme; do + with_theme_sorted=`echo $with_theme|sed 's/\bdefault\b/colibre/g'|tr '\ ' '\n'|sort -u` + for theme in $with_theme_sorted; do case $theme in - breeze|breeze_dark|breeze_dark_svg|breeze_svg|colibre|colibre_svg|colibre_dark|colibre_dark_svg|elementary|elementary_svg|karasa_jaga|karasa_jaga_svg|sifr|sifr_svg|sifr_dark|sifr_dark_svg|sukapura|sukapura_dark|sukapura_dark_svg|sukapura_svg) real_theme="$theme" ;; - default) real_theme=colibre ;; + breeze|breeze_dark|breeze_dark_svg|breeze_svg|colibre|colibre_svg|colibre_dark|colibre_dark_svg|elementary|elementary_svg|karasa_jaga|karasa_jaga_svg|sifr|sifr_svg|sifr_dark|sifr_dark_svg|sukapura|sukapura_dark|sukapura_dark_svg|sukapura_svg) WITH_THEMES="${WITH_THEMES:+$WITH_THEMES }$theme" ;; *) AC_MSG_ERROR([Unknown value for --with-theme: $theme]) ;; esac - WITH_THEMES=`echo "$WITH_THEMES $real_theme"|tr '\ ' '\n'|sort|uniq|tr '\n' '\ '` done fi AC_MSG_RESULT([$WITH_THEMES]) |