debian-install
changeset 2 62ddf5dd4db0
equal deleted inserted replaced
1:9de88b525a59 2:62ddf5dd4db0
       
     1 #!/bin/bash
       
     2 
       
     3 PDIRECTORY=debian/qmonitor/usr/share/pixmaps
       
     4 IDIRECTORY=debian/qmonitor/usr/share/icons
       
     5 
       
     6 FILE=qMonitor_sideBar.png
       
     7 ICON=qMonitor_icon.png
       
     8 
       
     9 echo -n "Checking, whether ${PDIRECTORY} exists...                      [ "
       
    10 if [ ! -d ${PDIRECTORY} ]
       
    11 then
       
    12 	install -d ${PDIRECTORY};
       
    13 	echo "creating ]";
       
    14 else 
       
    15 	echo "yes ]";
       
    16 fi
       
    17 
       
    18 echo -n "Checking, whether ${PDIRECTORY}/${FILE} exists... [ "
       
    19 if [ ! -r ${PDIRECTORY}/${FILE} ]
       
    20 then
       
    21 	install -m 644 images/sideBar.png \
       
    22 		${PDIRECTORY}/${FILE};
       
    23 	echo "installing ]"
       
    24 	else
       
    25 		echo "yes ]";
       
    26 fi
       
    27 
       
    28 echo -n "Checking, whether ${IDIRECTORY} exists...                        [ "
       
    29 if [ ! -d ${IDIRECTORY} ]
       
    30 then
       
    31 	install -d ${IDIRECTORY};
       
    32 	echo "creating ]";
       
    33 else 
       
    34 	echo "yes ]";
       
    35 fi
       
    36 
       
    37 echo -n "Checking, whether ${IDIRECTORY}/${ICON} exists...      [ "
       
    38 if [ ! -r ${IDIRECTORY}/${ICON} ]
       
    39 then
       
    40 	install -m 644 images/icon.png \
       
    41 		${IDIRECTORY}/${ICON};
       
    42 	echo "installing ]"
       
    43 	else
       
    44 		echo "yes ]";
       
    45 fi