Get fish version number from FISH-BUILD-VERSION file.

This commit is contained in:
Markus Birth 2014-05-10 22:55:43 +02:00
parent 8c7e1f3e27
commit 6b3da7e0b3

View File

@ -3,6 +3,7 @@
PKG_NAME=`cat configure | grep "PACKAGE_NAME=" | sed -r "s/^.*=['\"]?([^'\"]*)['\"]?$/\1/g"`
PKG_VERSION=`cat configure | grep "PACKAGE_VERSION=" | sed -r "s/^.*=['\"]?([^'\"]*)['\"]?$/\1/g"`
PKG_VERSION=`cat FISH-BUILD-VERSION-FILE | grep "FISH_BUILD_VERSION =" | sed -r "s/^.* = ['\"]?([^'\"]*)['\"]?$/\1/g"`
PKG_OLDCODE=`ls -1vr ./${PKG_NAME}_${PKG_VERSION}* | head -n 1 | sed -r "s/^.*${PKG_NAME}_${PKG_VERSION}-(.*)_.*$/\1/g"`
PKG_CODE=`expr $PKG_OLDCODE + 1`
SPEC_FILE=`ls -1r ./*.spec`