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 (56 lines) | stat: -rwxr-xr-x 1,825 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
#!/bin/sh

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

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 ~/.icons/$NAME-$c-$s ] ; then
        rm -r ~/.icons/$NAME-$c-$s
      fi
      mv ~/.icons/ComixCursors-Custom ~/.icons/$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 ~/.icons/$NAME-$c-$s-Slim ] ; then
        rm -r ~/.icons/$NAME-$c-$s-Slim
      fi
      mv ~/.icons/ComixCursors-Custom ~/.icons/$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 ~/.icons/$NAME-Ghost ] ; then
  rm -r ~/.icons/$NAME-Ghost
fi
mv ~/.icons/ComixCursors-Custom ~/.icons/$NAME-Ghost

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

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