#!/bin/sh
CWD=$(pwd)
(cd /repo/x86_64/slint-15.0/slint/
while read i; do
	find . -name "${i}*dep"
done < "$CWD"/paquets_mate_1.28 > "$CWD"/unsorted
)
sort unsorted|uniq|sed 's#..##' >sorted
rm unsorted
while read i; do
	cp /repo/x86_64/slint-15.0/slint/$i .
done < sorted
rm -f mate_deps_unsorted
find . -name "*.dep"|while read i; do
	sed 's#,#\n#g' $i >> mate_deps_unsorted
done
sort mate_deps_unsorted|uniq > _mate_deps_sorted
