Skip to content

Commit abd1978

Browse files
committedJun 26, 2015
[rpmbuild] support for multi-digit version numbers and add Fedora 22 to default
1 parent eff1357 commit abd1978

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎rpm/buildrpms.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ fi
6868

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

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

‎rpm/default.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ ARCHS=( "fedora-20-i386"
1313
"fedora-20-x86_64"
1414
"fedora-21-i386"
1515
"fedora-21-x86_64"
16+
"fedora-22-i386"
17+
"fedora-22-x86_64"
1618
)
1719

1820
# Which git branch to export. Normally take the current

0 commit comments

Comments
 (0)
Please sign in to comment.