#!/bin/sh

install -d -m 755 $DESTDIR/usr/bin/
install -d -m 755 $DESTDIR/etc/xdg/autostart
install -d -m 755 $DESTDIR/etc/cron.hourly
install -d -m 755 $DESTDIR/usr/share/pixmaps
install -d -m 755 $DESTDIR/var/run/salix-update-notifier
install -m 755 src/salix-update-notifier $DESTDIR/usr/bin/
install -m 644 salix-update-notifier.desktop $DESTDIR/etc/xdg/autostart/
install -m 755 src/slapt-get-update $DESTDIR/etc/cron.hourly/
install -m 644 src/salix-update-notifier.conf $DESTDIR/etc/
install -m 644 src/salix-update-notifier.png $DESTDIR/usr/share/pixmaps/

for i in `ls po/*.mo|sed "s|po/\(.*\).mo|\1|"`; do
	install -d -m 755 $DESTDIR/usr/share/locale/${i}/LC_MESSAGES
	install -m 644 po/${i}.mo \
	$DESTDIR/usr/share/locale/${i}/LC_MESSAGES/salix-update-notifier.mo
done
