#!/bin/sh
usage() {
  printf %b "Usage: $0 32|64\n"
  exit
}
DATESTAMP=`date -u +%Y%m%d`
if [ $# -ne 1 ]; then usage; fi
rm -f pkg_list
for list in Extra Slint Salix; do
	for line in $(<$list); do
		a=$(sed -n "/.*/p;q" /tmp/iso$1/slint/${line}*desc|sed "s/[^(]*(//;s/[) .]*$/| |/")
    	echo "|$line|$list|$a"  
    done
done |sort > titi
sed "s/|\([^|]*\)|\([^|]*\)\(.*\)/|\2|\1\3/" titi > pkglist$1-$DATESTAMP
rm titi

