Code

detect correct version
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 1 Dec 2010 08:42:15 +0000 (08:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 1 Dec 2010 08:42:15 +0000 (08:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20458 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/redhat/make-gosa-package

index bf2e1b3697fc31029fe7a8228486f3affc9bd932..9d1a5728e78b07e249c25f5917cf20c1c1fbb13f 100755 (executable)
@@ -44,7 +44,7 @@ fi
 # Detect build version 
 ##
 VERSION=$(cat rpm_src/gosa-core/debian/changelog | head -n 1 | sed -n -e 's/.*(\([^-]*\).*/\1/p')
-
+VERSION=$(cat rpm_src/gosa-core/Changelog  | grep "^\*" | sed s/"^[^0-9]*"//g | head -n1)
 
 case "$distribution" in 
  "RHEL" )