File: wrapperthemes.sh

package info (click to toggle)
breeze 4%3A5.20.5-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 26,044 kB
  • sloc: cpp: 13,741; sh: 152; python: 40; makefile: 8
file content (20 lines) | stat: -rwxr-xr-x 458 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

ICONDIR=/usr/share/icons
WRAPPERDIR=/etc/X11/cursors
: ${CURDIR:=`pwd`}

tmp="$(mktemp)"

while [ $# -gt 0 ]; do
    theme=$1
    shift

    mkdir -p ${CURDIR}/debian/tmp${WRAPPERDIR}
    cd ${CURDIR}/debian/tmp${ICONDIR}
    grep -a -v Inherits ${CURDIR}/debian/tmp${ICONDIR}/${theme}/index.theme > "$tmp"
    echo "Inherits=${theme}" >> "$tmp"
    install -m 644 "$tmp" ${CURDIR}/debian/tmp${WRAPPERDIR}/${theme}.theme
    rm "$tmp"
done