aboutsummaryrefslogtreecommitdiffstats
path: root/platform/rpm/mkrpm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'platform/rpm/mkrpm.sh')
-rwxr-xr-xplatform/rpm/mkrpm.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/rpm/mkrpm.sh b/platform/rpm/mkrpm.sh
index e600c6bdd..3ac4458d0 100755
--- a/platform/rpm/mkrpm.sh
+++ b/platform/rpm/mkrpm.sh
@@ -6,7 +6,8 @@
6# current working directory. 6# current working directory.
7 7
8name=$1 8name=$1
9version=$2 9# Strip any trailing prefix from the version like -rc1 etc
10version=$(echo "$2" | sed 's/\-.*//g')
10 11
11if [[ ! -f platform/rpm/${name}.spec ]]; then 12if [[ ! -f platform/rpm/${name}.spec ]]; then
12 echo error: spec file not found for name \"${name}\" 13 echo error: spec file not found for name \"${name}\"