2 # Launcher script for iKog
5 LOCAL_DIR
="$HOME"/.ikog
6 ORIG_DIR
=/usr
/share
/ikog
8 # Create ikog.db if necessary
10 local db
="$LOCAL_DIR"/ikog.db
11 local bak
="$LOCAL_DIR"/ikog.db.bak
12 local orig
=$ORIG_DIR/ikog.py
16 elif [[ -f $bak ]]; then
17 echo " creating $db from $bak"
18 install -Dm644 "$bak" "$db"
19 elif [[ -f $orig ]]; then
20 echo " creating $db from $orig"
21 install -Dm644 $orig "$db"
23 echo -e " \033[1;31;40mno usable lists detected\033[1;0m"
28 # Create ikog.css if necessary
30 local css
="$LOCAL_DIR"/ikog.css
31 local orig
=$ORIG_DIR/ikog.css
33 if [[ -f $css ]]; then
36 echo " creating $css from $orig"
37 install -Dm644 $orig "$css"
43 echo ":: iKog sanity checks..."
47 echo ":: Launching iKog..."