Get fish version number from FISH-BUILD-VERSION file.
This commit is contained in:
parent
8c7e1f3e27
commit
6b3da7e0b3
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user