| 1 |
#! /bin/sh |
| 2 |
# |
| 3 |
# debian/wrap-cursor-themes |
| 4 |
# Part of Debian ‘comixcursors’ package. |
| 5 |
# |
| 6 |
# This is free software, and you are welcome to redistribute it under |
| 7 |
# certain conditions; see the end of this file for copyright |
| 8 |
# information, grant of license, and disclaimer of warranty. |
| 9 |
|
| 10 |
# Create named wrapper theme files for each of the installed themes. |
| 11 |
|
| 12 |
set -e |
| 13 |
|
| 14 |
icons_builddir="${PACKAGE_BUILDDIR}/usr/share/icons" |
| 15 |
wrapperdir="${PACKAGE_BUILDDIR}/etc/X11/cursors" |
| 16 |
|
| 17 |
temp_theme="$(mktemp -t)" |
| 18 |
for theme_dir in "${icons_builddir}"/ComixCursors-* ; do |
| 19 |
theme_name=$(basename "${theme_dir}") |
| 20 |
theme_file="${theme_dir}"/index.theme |
| 21 |
{ |
| 22 |
grep -v Inherits "${theme_file}" |
| 23 |
printf "Inherits = %s\n" ${theme_name} |
| 24 |
} > "${temp_theme}" |
| 25 |
wrapped_theme="${wrapperdir}/${theme_name}.theme" |
| 26 |
install -m 644 "${temp_theme}" "${wrapped_theme}" |
| 27 |
done |
| 28 |
rm "${temp_theme}" |
| 29 |
|
| 30 |
|
| 31 |
# Copyright © 2010–2025 Ben Finney <[email protected]> |
| 32 |
# Copyright © 2005–2008 Sune Vuorela <[email protected]> |
| 33 |
# |
| 34 |
# This is free software; you may copy, modify, and/or distribute this work |
| 35 |
# under the terms of the GNU General Public License, version 3 or later. |
| 36 |
# No warranty expressed or implied. |
| 37 |
# |
| 38 |
# On Debian systems, the complete text of version 3 of the GNU General |
| 39 |
# Public License can be found in ‘/usr/share/common-licenses/GPL-3’. |