Skip to content
Permalink
Browse files

[rpmbuild] support for multi-digit version numbers and add Fedora 22 …

…to default
  • Loading branch information
m-kuhn committed Jun 26, 2015
1 parent 5cd8d08 commit 0c71e09571e84bf4d03d626e54a4b9e0b26fbc25
Showing with 5 additions and 3 deletions.
  1. +3 −3 rpm/buildrpms.sh
  2. +2 −0 rpm/default.cfg
@@ -68,11 +68,11 @@ fi

# Get the version string
major=$(grep -e 'SET(CPACK_PACKAGE_VERSION_MAJOR' ../CMakeLists.txt |
sed 's/.*\([0-9]\).*/\1/')
sed -r 's/.*\"([0-9]+)\".*/\1/g')
minor=$(grep -e 'SET(CPACK_PACKAGE_VERSION_MINOR' ../CMakeLists.txt |
sed 's/.*\([0-9]\).*/\1/')
sed -r 's/.*\"([0-9]+)\".*/\1/g')
patch=$(grep -e 'SET(CPACK_PACKAGE_VERSION_PATCH' ../CMakeLists.txt |
sed 's/.*\([0-9]\).*/\1/')
sed -r 's/.*\"([0-9]+)\".*/\1/g')

version=$(echo $major.$minor.$patch)

@@ -13,6 +13,8 @@ ARCHS=( "fedora-20-i386"
"fedora-20-x86_64"
"fedora-21-i386"
"fedora-21-x86_64"
"fedora-22-i386"
"fedora-22-x86_64"
)

# Which git branch to export. Normally take the current

0 comments on commit 0c71e09

Please sign in to comment.
You can’t perform that action at this time.