source: app/dist/common/find_rpm_deps.sh @ 2f8d6d8

Last change on this file since 2f8d6d8 was 317d53b, checked in by pawelk <pawelk@…>, 17 years ago

Dodalem skrypty, zwiazane z obsluga zaleznosci w tarballu.

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@22 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

  • Property mode set to 100755
File size: 337 bytes
Line 
1#!/bin/sh
2
3# sprawdzamy czy podano argument
4if test $# -lt 1; then echo RPM file name expected!; exit -1; fi
5
6# sprawdzamy czy to plik, potem, czy rpm
7if test -f $1; \
8then
9    if test "rpm" = `ls $1 | tail -c 4`; \
10    then
11        rpm -q -R -p $1; \
12    else echo "It's not a RPM file!"; \
13    fi
14else echo RPM file not found!; \
15fi
16
Note: See TracBrowser for help on using the repository browser.