File: llama.cpp-tools.postinst

package info (click to toggle)
llama.cpp 6641%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 43,640 kB
  • sloc: cpp: 218,020; ansic: 117,624; python: 29,020; lisp: 9,094; sh: 5,776; objc: 1,045; javascript: 828; xml: 259; makefile: 219
file content (20 lines) | stat: -rw-r--r-- 522 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

# Can't use dh_installalternatives because it doesn't support directories yet,
# see #1106089

if [ "$1" = "configure" ]; then
    for theme_prio in simplechat:50 buttons-top:40 wild:40; do
        theme="${theme_prio%:*}"
        prio="${theme_prio#*:}"
        update-alternatives --install \
            /usr/share/llama.cpp-tools/llama-server/active-theme \
            llama-server-theme \
            /usr/share/llama.cpp-tools/llama-server/themes/"$theme" "$prio"
    done
fi

#DEBHELPER#

exit 0