Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Increment version number
(view source)
Revision as of 07:18, 21 August 2015
228 bytes added
,
07:18, 21 August 2015
→find version number
Line 88:
Line 88:
in a script you can use this from your spec file
in a script you can use this from your spec file
version=$(grep -sri 'define version' *.spec | sed 's/%define version //gI')
version=$(grep -sri 'define version' *.spec | sed 's/%define version //gI')
+
or also
+
# Informations needed from the spec file
+
version=$(rpm -q --qf "%{version}\n" --specfile $name.spec | head -1)
+
release=$(rpm -q --qf "%{release}\n" --specfile $name.spec | head -1| sed s/\.el.//)
===find and bump release number===
===find and bump release number===
Stephdl
Administrators
5,576
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version