#!/bin/sh
# Author: Didier Spaier, Paris, France
# Public domain
# Note: libunique, dependency of lxsession, is included in this series because
# as it was not shipped in Slint version 14.2, it it probably missing from the
# user's system running "slapt-get --install-set lxde.
# Some folks think that vala is also needed, we'll see when building the
# 32-bit packages without it.
lxde="gpicview \
libfm \
libfm-extra \
libunique \
lxappearance \
lxde-common \
lxde-icon-theme \
lxdm \
lxinput \
lxlauncher \
lxmenu-data \
lxmusic \
lxpanel \
lxrandr \
lxsession \
lxsession-edit \
lxshortcut \
lxtask \
lxterminal \
menu-cache \
pcmanfm"
rm -f slint/lxde/*
for somefile in $lxde; do
	for i in $(find slint -name "${somefile}*.dep"); do
		if echo $(basename $i)|grep -wq ${somefile}-[^-]*-[^-]*-[^-]*$; then
			ln $i slint/lxde/$(basename $i)
		fi
	done
	for i in $(find slint -name "${somefile}*.txt"); do
		if echo $(basename $i)|grep -wq ${somefile}-[^-]*-[^-]*-[^-]*$; then
			ln $i slint/lxde/$(basename $i)
		fi
	done
	for i in $(find slint -name "${somefile}*txz"); do
		if echo $(basename $i)|grep -wq ${somefile}-[^-]*-[^-]*-[^-]*$; then
			ln $i slint/lxde/$(basename $i)
		fi
	done
done
