#!/bin/sh
#
#retrivems: version 1.0
#
#a script containing some useful functions used to trace missing dependencies of a tgz
#
#usage:
#
#./retrivems packagename
#
#pkgname is the name of the tgz package inside the slack database


#--------------------------------------------------------------
#aux functions


function retrivems ()
{
MISFILE=$MISDIR/`basename $1 .tgz`;
if [ -f $MISFILE ]; then
	echo -e "\n--> the following libs/files are required by $(basename $1 .tgz) and are missing:"
	cat $MISFILE;
	return 1
else
	return 0
fi
}
#--------------------------------------------------------------


#--------------------------------------------------------------
#main body

retrivems $1
#--------------------------------------------------------------

#EOF
