diff options
author | François Andriot <albator78@libertysurf.fr> | 2014-01-24 20:46:50 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2014-01-24 20:46:50 +0100 |
commit | 43429e67cfc03fdf5065e90c197753ec5f15aa19 (patch) | |
tree | 3f85e6c48280c03682aa2aa92fca68fd9aa60634 /redhat/build/get_source_files.sh | |
parent | df55195d132cbe6af516c6f1883315f26abd7f4a (diff) | |
download | tde-packaging-43429e67cfc03fdf5065e90c197753ec5f15aa19.tar.gz tde-packaging-43429e67cfc03fdf5065e90c197753ec5f15aa19.zip |
RPM Packaging: update build scripts
Diffstat (limited to 'redhat/build/get_source_files.sh')
-rwxr-xr-x | redhat/build/get_source_files.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/redhat/build/get_source_files.sh b/redhat/build/get_source_files.sh new file mode 100755 index 000000000..b52c023e8 --- /dev/null +++ b/redhat/build/get_source_files.sh @@ -0,0 +1,21 @@ +#!/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}" |