utt/app/dist/common/find_rpm_deps.sh
pawelk 317d53bd6b Dodalem skrypty, zwiazane z obsluga zaleznosci w tarballu.
git-svn-id: svn://atos.wmid.amu.edu.pl/utt@22 e293616e-ec6a-49c2-aa92-f4a8b91c5d16
2008-04-02 10:55:48 +00:00

17 lines
337 B
Bash
Executable File

#!/bin/sh
# sprawdzamy czy podano argument
if test $# -lt 1; then echo RPM file name expected!; exit -1; fi
# sprawdzamy czy to plik, potem, czy rpm
if test -f $1; \
then
if test "rpm" = `ls $1 | tail -c 4`; \
then
rpm -q -R -p $1; \
else echo "It's not a RPM file!"; \
fi
else echo RPM file not found!; \
fi