debian-install
author Markus Bröker <mbroeker@largo.homelinux.org>
Tue, 02 Feb 2010 13:20:45 +0100
changeset 7 f23b595e590e
parent 2 62ddf5dd4db0
permissions -rwxr-xr-x
Resize changes on newer qt versions
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     1
#!/bin/bash
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     2
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     3
PDIRECTORY=debian/qmonitor/usr/share/pixmaps
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     4
IDIRECTORY=debian/qmonitor/usr/share/icons
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     5
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     6
FILE=qMonitor_sideBar.png
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     7
ICON=qMonitor_icon.png
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     8
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     9
echo -n "Checking, whether ${PDIRECTORY} exists...                      [ "
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    10
if [ ! -d ${PDIRECTORY} ]
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    11
then
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    12
	install -d ${PDIRECTORY};
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    13
	echo "creating ]";
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    14
else 
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    15
	echo "yes ]";
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    16
fi
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    17
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    18
echo -n "Checking, whether ${PDIRECTORY}/${FILE} exists... [ "
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    19
if [ ! -r ${PDIRECTORY}/${FILE} ]
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    20
then
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    21
	install -m 644 images/sideBar.png \
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    22
		${PDIRECTORY}/${FILE};
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    23
	echo "installing ]"
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    24
	else
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    25
		echo "yes ]";
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    26
fi
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    27
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    28
echo -n "Checking, whether ${IDIRECTORY} exists...                        [ "
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    29
if [ ! -d ${IDIRECTORY} ]
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    30
then
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    31
	install -d ${IDIRECTORY};
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    32
	echo "creating ]";
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    33
else 
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    34
	echo "yes ]";
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    35
fi
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    36
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    37
echo -n "Checking, whether ${IDIRECTORY}/${ICON} exists...      [ "
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    38
if [ ! -r ${IDIRECTORY}/${ICON} ]
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    39
then
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    40
	install -m 644 images/icon.png \
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    41
		${IDIRECTORY}/${ICON};
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    42
	echo "installing ]"
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    43
	else
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    44
		echo "yes ]";
62ddf5dd4db0 debian specific changes to the debian build system
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    45
fi