Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- fixed .newrelease to just increase the release part of the new

  kiwi version string by one
  • Loading branch information...
commit b622b603b25f5ec4b8dacede0e7abe82b768045b 1 parent ecc646a
Marcus Schäfer authored
Showing with 6 additions and 10 deletions.
  1. +6 −10 .newrelease
View
16 .newrelease
@@ -1,14 +1,10 @@
#!/bin/bash
-version=$1
-if ! echo $version | pcregrep -q "^\d+$";then
- echo "NOT A RELEASE ! ... abort"
- exit 1
-fi
+version=$(cat modules/KIWIGlobals.pm|grep {Version}|cut -f2 -d= | cut -f2 -d\")
+v_part1=$(echo $version | cut -f1-2 -d.)
+v_part2=$(echo $version | cut -f3 -d.)
+v_part2=$((v_part2 + 1))
-# spec file version update
-cat rpm/kiwi.spec | sed \
- -e s"@Release: .*@Release: $version@" \
-> rpm/kiwi.spec.new && mv rpm/kiwi.spec.new rpm/kiwi.spec
+version=$v_part1.$v_part2
-echo "update to release: $version... done"
+./.newversion $version
Please sign in to comment.
Something went wrong with that request. Please try again.