File: install-all.sh

package info (click to toggle)
comixcursors 0.6.1-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 880 kB
  • ctags: 35
  • sloc: sh: 567; makefile: 87
file content (60 lines) | stat: -rwxr-xr-x 1,990 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#! /bin/bash

# the original cursors
SIZES="Small Regular Large Huge"
COLORS="Black Blue Green Orange Red White"
NAME="ComixCursors"

# Set the ICONSDIR destination to a default (if not already set).
ICONSDIR=${ICONSDIR:-~/.icons}
export ICONSDIR

for c in $COLORS; do 
  for s in $SIZES; do 
    # install bold version
    if [[ -f ComixCursorsConfigs/$c-$s.CONFIG && -f ComixCursorsConfigs/$c-$s.theme ]] ; then
      echo -e "\ninstalling \"$c $s\":\n"
      cp ComixCursorsConfigs/$c-$s.CONFIG CONFIG
      cp ComixCursorsConfigs/$c-$s.theme index.theme
      ./install.bash
      sleep 3
      if [ -d ${ICONSDIR}/$NAME-$c-$s ] ; then
        rm -r ${ICONSDIR}/$NAME-$c-$s
      fi
      mv ${ICONSDIR}/ComixCursors-Custom ${ICONSDIR}/$NAME-$c-$s
    fi
    # install slim version, these will use the shadows from the bold version
    if [[ -f ComixCursorsConfigs/$c-$s-Slim.CONFIG && -f ComixCursorsConfigs/$c-$s-Slim.theme ]] ; then
      echo -e "\ninstalling \"$c $s Slim\":\n"
      cp ComixCursorsConfigs/$c-$s-Slim.CONFIG CONFIG
      cp ComixCursorsConfigs/$c-$s-Slim.theme index.theme
      ./install.bash
      sleep 3
      if [ -d ${ICONSDIR}/$NAME-$c-$s-Slim ] ; then
        rm -r ${ICONSDIR}/$NAME-$c-$s-Slim
      fi
      mv ${ICONSDIR}/ComixCursors-Custom ${ICONSDIR}/$NAME-$c-$s-Slim
    fi
  done
done

echo -e "\ninstalling Ghost:\n"
cp ComixCursorsConfigs/Ghost.CONFIG CONFIG
cp ComixCursorsConfigs/Ghost.theme index.theme
./install.bash
if [ -d ${ICONSDIR}/$NAME-Ghost ] ; then
  rm -r ${ICONSDIR}/$NAME-Ghost
fi
mv ${ICONSDIR}/ComixCursors-Custom ${ICONSDIR}/$NAME-Ghost

echo -e "\ninstalling Christmas:\n"
cp ComixCursorsConfigs/Christmas.CONFIG CONFIG
cp ComixCursorsConfigs/Christmas.theme index.theme
./install.bash
if [ -d ${ICONSDIR}/$NAME-Christmas ] ; then
  rm -r ${ICONSDIR}/$NAME-Christmas
fi
mv ${ICONSDIR}/ComixCursors-Custom ${ICONSDIR}/$NAME-Christmas

cp ComixCursorsConfigs/custom.CONFIG CONFIG
cp ComixCursorsConfigs/custom.theme index.theme