summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-08-09 12:11:39 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-08-09 12:11:39 +0200
commit3fb79c5fd70b0ca33f29f2ad6d4c0ac004a1169c (patch)
tree4deeae0ddf5f85932ac82197e36fbb83ad27096f /redhat/genrpm.sh
parent86c48cec51f59dd8b6f693fbc4d01817d6f91f96 (diff)
downloadtde-packaging-3fb79c5fd70b0ca33f29f2ad6d4c0ac004a1169c.tar.gz
tde-packaging-3fb79c5fd70b0ca33f29f2ad6d4c0ac004a1169c.zip
RHEL/Fedora: update build script
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index 8aeee8f7b..9decbeb12 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -57,7 +57,7 @@ VERSION=$( awk '{ if ($1 == "'${COMP}'") { print $2; } }' components.txt )
# If no version is set in text file, get version number from source tarball name
if [ -z "${VERSION}" ]; then
if [ -n "${REQVERSION}" ]; then
- set $( cd "${COMP}"; echo ${COMP##*/}*-${REQVERSION}.tar.gz)
+ set $( cd "${COMP}"; echo ${COMP##*/}*-${REQVERSION%-sru}*.tar.gz)
else
set $( cd "${COMP}"; echo ${COMP##*/}*.tar.* )
fi