cd $SOURCE_DIRECTORY &&
#install -d -m 755 ${INSTALL_ROOT}/usr/share/acpi-support &&
if [[ -e ${INSTALL_ROOT}/usr/share/acpi-support ]]; then
	rm -rf ${INSTALL_ROOT}/usr/share/acpi-support
fi &&
cp -v -r lib ${INSTALL_ROOT}/usr/share/acpi-support &&
chmod -v 755 ${INSTALL_ROOT}/usr/share/acpi-support &&
chmod -v 644 ${INSTALL_ROOT}/usr/share/acpi-support/* &&
install -v -d -m 755 ${INSTALL_ROOT}/etc/acpi/suspend.d &&
install -v -d -m 755 ${INSTALL_ROOT}/etc/acpi/resume.d &&
install -v -d -m 755 ${INSTALL_ROOT}/etc/acpi/start.d &&
install -v -d -m 755 ${INSTALL_ROOT}/etc/acpi/ac.d &&
install -v -d -m 755 ${INSTALL_ROOT}/etc/acpi/battery.d &&
install -v -d -m 755 ${INSTALL_ROOT}/var/lib/acpi-support &&
#for file in `ls lib/* | sed 's/\([^ ]\)[ ]/\1\\ /g'` ;
#do
#	install -m 644 $file  ${INSTALL_ROOT}/usr/share/acpi-support
#done &&
for file in events/* ;
do
install -v -m 644 $file ${INSTALL_ROOT}/etc/acpi/events
done &&
for file in suspend.d/* ;
do
install -v -m 755 $file ${INSTALL_ROOT}/etc/acpi/suspend.d
done &&
for file in resume.d/* ;
do
install -v -m 755 $file ${INSTALL_ROOT}/etc/acpi/resume.d
done &&
for file in start.d/* ;
do
install -v -m 755 $file ${INSTALL_ROOT}/etc/acpi/start.d
done &&
for file in *.sh ;
do
install -v -m 755 $file ${INSTALL_ROOT}/etc/acpi
done &&
install -v -m 644 acpi-support ${INSTALL_ROOT}/etc/default &&
install -v -m 644 thinkpad_acpi.modprobe ${INSTALL_ROOT}/etc/modprobe.d &&
install -v -m 755 acpi_fakekey ${INSTALL_ROOT}/usr/bin &&
install -v -m 644 key-constants ${INSTALL_ROOT}/usr/share/acpi-support
