aboutsummaryrefslogtreecommitdiff
path: root/test.sh
blob: ad72ae2c2c1709ebca6b5e834c3f4bc39b8b475a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash

set -e

if [ "$#" -ne 1 ]; then
    echo "Expected 1 argument, a home path"
    exit 1
fi

script_path=`readlink -f $0`
script_dir=`dirname $script_path`
cd "$script_dir"

HOME="$1"
if [ ! -f ~/.local/share/fonts/Lato-Regular.ttf ]; then
    mkdir -p ~/.local/share/fonts
    cp ./fonts/Lato-Regular.ttf ~/.local/share/fonts/Lato-Regular.ttf
    fc-cache
fi
if [ ! -f ~/.local/share/fonts/Lato-Bold.ttf ]; then
    mkdir -p ~/.local/share/fonts
    cp ./fonts/Lato-Bold.ttf ~/.local/share/fonts/Lato-Bold.ttf
    fc-cache
fi
platform=`sibs platform`
env GTK_THEME=Adwaita:light gdb ./sibs-build/$platform/debug/dchat