debian-install
author Markus Bröker <mbroeker@largo.homelinux.org>
Fri, 10 Apr 2009 21:21:11 +0200
changeset 5 70980306fd61
parent 2 62ddf5dd4db0
permissions -rwxr-xr-x
lintian checks minimized the lintian warnings, QoS

#!/bin/bash

PDIRECTORY=debian/qmonitor/usr/share/pixmaps
IDIRECTORY=debian/qmonitor/usr/share/icons

FILE=qMonitor_sideBar.png
ICON=qMonitor_icon.png

echo -n "Checking, whether ${PDIRECTORY} exists...                      [ "
if [ ! -d ${PDIRECTORY} ]
then
	install -d ${PDIRECTORY};
	echo "creating ]";
else 
	echo "yes ]";
fi

echo -n "Checking, whether ${PDIRECTORY}/${FILE} exists... [ "
if [ ! -r ${PDIRECTORY}/${FILE} ]
then
	install -m 644 images/sideBar.png \
		${PDIRECTORY}/${FILE};
	echo "installing ]"
	else
		echo "yes ]";
fi

echo -n "Checking, whether ${IDIRECTORY} exists...                        [ "
if [ ! -d ${IDIRECTORY} ]
then
	install -d ${IDIRECTORY};
	echo "creating ]";
else 
	echo "yes ]";
fi

echo -n "Checking, whether ${IDIRECTORY}/${ICON} exists...      [ "
if [ ! -r ${IDIRECTORY}/${ICON} ]
then
	install -m 644 images/icon.png \
		${IDIRECTORY}/${ICON};
	echo "installing ]"
	else
		echo "yes ]";
fi