You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
474 B
22 lines
474 B
11 years ago
|
#!/bin/bash
|
||
|
|
||
|
PKGNAME="${1##*/}"
|
||
|
TDE_VERSION="${2:-14.0.0}"
|
||
|
|
||
|
[ -z "${PKGNAME}" ] && echo "You must specify a package name !" && exit 1
|
||
|
SPECFILE=$(get_specfile.sh ${PKGNAME} ${TDE_VERSION})
|
||
|
SPECDIR="${SPECFILE%/*}"
|
||
|
|
||
|
[ ! -r "${SPECFILE}" ] && exit 2
|
||
|
|
||
|
while read var val; do
|
||
|
case "${var}" in
|
||
|
Source[0-9]*:|Source:|Patch[0-9]*:)
|
||
|
FILE=$(rpm -E "${SPECDIR}/${val##*/}")
|
||
|
if [ -r "${FILE}" ]; then
|
||
|
echo "${FILE}"
|
||
|
fi
|
||
|
;;
|
||
|
esac
|
||
|
done < "${SPECFILE}"
|