File: llama.cpp-tools.postinst

package info (click to toggle)
llama.cpp 5882%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 34,020 kB
  • sloc: cpp: 189,548; ansic: 115,889; python: 24,977; objc: 6,050; lisp: 5,741; sh: 5,571; makefile: 1,293; javascript: 807; xml: 259
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