From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-dev/2013-March/024024.html | 76 +++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 zarb-ml/mageia-dev/2013-March/024024.html (limited to 'zarb-ml/mageia-dev/2013-March/024024.html') diff --git a/zarb-ml/mageia-dev/2013-March/024024.html b/zarb-ml/mageia-dev/2013-March/024024.html new file mode 100644 index 000000000..422d3f78c --- /dev/null +++ b/zarb-ml/mageia-dev/2013-March/024024.html @@ -0,0 +1,76 @@ + + + + [Mageia-dev] Does anyone have a script that bumps releases? + + + + + + + + + +

[Mageia-dev] Does anyone have a script that bumps releases?

+ Anssi Hannula + anssi at mageia.org +
+ Sun Mar 31 22:33:29 CEST 2013 +

+
+ +
31.03.2013 16:09, Colin Guthrie kirjoitti:
+> Hi,
+> 
+> Does anyone have a script that will bump the release of a given spec file?
+> 
+> Obviously there are lots of different forms to set the release and I
+> guess the script has to back through the definition chain to find the
+> right place to "add one".
+
+I use:
+perl -pi -e
+'s,((?:%define\s+rel(?:ease)?\b|Release:).*[\s\.])(\d+)(})?$,$1 . ($2+1)
+. $3,e' file.spec
+
+(with some boilerplate to check if it worked)
+
+Works on pretty much all cases except "%define foobarrel 1" style
+definitions.
+
+-- 
+Anssi Hannula
+
+ + +
+

+ +
+More information about the Mageia-dev +mailing list
+ -- cgit v1.2.1