2008-06-05 12:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/bin/hb-func.sh
    + added get_hbverstat function to extract build status from hbver.h

  * harbour/make_rpmw32.sh
  * harbour/harbour.spec
  * harbour/make_rpmce.sh
    * moved -RC1 from version to releasen part - it resolves the problem
      with illegal character in version number
This commit is contained in:
Przemyslaw Czerpak
2008-06-05 10:57:28 +00:00
parent 31ff7b0367
commit 27e1488484
5 changed files with 26 additions and 2 deletions

View File

@@ -8,6 +8,16 @@
2008-12-31 13:59 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2008-06-05 12:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
+ added get_hbverstat function to extract build status from hbver.h
* harbour/make_rpmw32.sh
* harbour/harbour.spec
* harbour/make_rpmce.sh
* moved -RC1 from version to releasen part - it resolves the problem
with illegal character in version number
2008-06-05 12:53 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/pp/hbppgen.c
* contrib/examples/pp/hbpp.c

View File

@@ -51,6 +51,16 @@ get_hbver()
echo -n "${MAJOR}.${MINOR}.${REVIS}"
}
get_hbverstat()
{
local FVER VERSTAT hb_rootdir
hb_rootdir="${1-.}"
FVER="${hb_rootdir}/include/hbver.h"
VERSTAT=`sed -e '/HB_VER_STATUS/ !d' -e 's/[^\"]*\"\([^\"]*\).*/\1/g' "${FVER}"`
echo -n "${VERSTAT}"
}
get_solibname()
{
local name

View File

@@ -60,8 +60,8 @@
%define name harbour
%define dname Harbour
%define version 1.0.0-RC1
%define releasen 0
%define version 1.0.0
%define releasen RC1
%define hb_pref hb
%define hb_arch export HB_ARCHITECTURE=linux
%define hb_cc export HB_COMPILER=gcc

View File

@@ -49,6 +49,7 @@ get_rpmmacro()
cd `dirname $0`
. bin/hb-func.sh
hb_ver=`get_hbver`
hb_verstat=`get_hbverstat`
NEED_RPM="make gcc binutils bash cegcc-mingw32ce"
@@ -104,6 +105,7 @@ then
fi
mv ${hb_filename} ${RPMDIR}/SOURCES/
sed -e "s/^%define version .*$/%define version ${hb_ver}/g" \
-e "s/^%define releasen .*$/%define releasen ${hb_verstat}/g" \
harbour-ce-spec > ${RPMDIR}/SPECS/harbour-ce.spec
if which rpmbuild &>/dev/null
then

View File

@@ -71,6 +71,7 @@ CCPATH="$MINGW_DIR/bin"
cd `dirname $0`
. bin/hb-func.sh
hb_ver=`get_hbver`
hb_verstat=`get_hbverstat`
NEED_RPM="make gcc binutils bash"
@@ -126,6 +127,7 @@ then
fi
mv ${hb_filename} ${RPMDIR}/SOURCES/
sed -e "s|^%define version .*$|%define version ${hb_ver}|g" \
-e "s|^%define releasen .*$|%define releasen ${hb_verstat}|g" \
-e "s|^%define hb_ccpath .*$|%define hb_ccpath ${CCPATH}|g" \
-e "s|^%define hb_ccpref .*$|%define hb_ccpref ${CCPREFIX}|g" \
harbour-w32-spec > ${RPMDIR}/SPECS/harbour-w32.spec