2010-07-29 15:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

- mpkg_rpm.sh
  - mpkg_rpm_wce.sh
  - mpkg_rpm_win.sh
  - mpkg_src.sh
  + package/mpkg_rpm.sh
  + package/mpkg_rpm_wce.sh
  + package/mpkg_rpm_win.sh
  + package/mpkg_src.sh
  * INSTALL
    * Moved rpm package creator scripts to package dir.
    * Update INSTALL accordingly.
    ; Please test/review it.
This commit is contained in:
Viktor Szakats
2010-07-29 13:47:14 +00:00
parent c08eecae20
commit ff1e787702
6 changed files with 28 additions and 11 deletions

View File

@@ -16,6 +16,20 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-07-29 15:46 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
- mpkg_rpm.sh
- mpkg_rpm_wce.sh
- mpkg_rpm_win.sh
- mpkg_src.sh
+ package/mpkg_rpm.sh
+ package/mpkg_rpm_wce.sh
+ package/mpkg_rpm_win.sh
+ package/mpkg_src.sh
* INSTALL
* Moved rpm package creator scripts to package dir.
* Update INSTALL accordingly.
; Please test/review it.
2010-07-29 15:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/gencc.c
! fixed wrongly used HB_ISIZ instead of HB_LONG

View File

@@ -238,7 +238,7 @@ HARBOUR
Binary .rpm on Linux
--------------------
$ ./mpkg_rpm.sh
$ package/mpkg_rpm.sh
You can fine-tune the build with these options:
--with static - link all binaries with static libs
@@ -266,9 +266,9 @@ HARBOUR
-----------------------------------
for Windows:
$ ./mpkg_rpm_win.sh
$ package/mpkg_rpm_win.sh
for Windows CE:
$ ./mpkg_rpm_wce.sh
$ package/mpkg_rpm_wce.sh
Binary .zip + .exe on Windows for all targets (except Linux)
------------------------------------------------------------

View File

@@ -150,6 +150,7 @@ done
if [ -z "${TOINST_LST}" ] || [ "${FORCE}" = "yes" ]
then
cd `dirname $0`
. ./mpkg_src.sh
stat="$?"
if [ -z "${hb_filename}" ]
@@ -173,7 +174,7 @@ then
fi
cp ${hb_filename} ${RPMDIR}/SOURCES/
cp package/harbour.spec ${RPMDIR}/SPECS/
cp harbour.spec ${RPMDIR}/SPECS/
if which rpmbuild >/dev/null 2>&1
then

View File

@@ -36,7 +36,7 @@ get_rpmmacro()
}
cd `dirname $0`
. package/mpkg_ver.sh
. ./mpkg_ver.sh
hb_ver=`get_hbver`
hb_verstat=`get_hbverstat`
[ -n "${hb_verstat}" ] || hb_verstat="0"
@@ -90,7 +90,7 @@ then
mv ${hb_filename} ${RPMDIR}/SOURCES/
sed -e "s/^%define version .*$/%define version ${hb_ver}/g" \
-e "s/^%define releasen .*$/%define releasen ${hb_verstat}/g" \
package/harbour-wce.spec > ${RPMDIR}/SPECS/harbour-wce.spec
harbour-wce.spec > ${RPMDIR}/SPECS/harbour-wce.spec
if which rpmbuild >/dev/null 2>&1
then
RPMBLD="rpmbuild"

View File

@@ -56,9 +56,8 @@ fi
HB_CCPREFIX="$TARGET-"
HB_CCPATH="$MINGW_DIR/bin"
cd `dirname $0`
. package/mpkg_ver.sh
. ./mpkg_ver.sh
hb_ver=`get_hbver`
hb_verstat=`get_hbverstat`
[ -n "${hb_verstat}" ] || hb_verstat="0"
@@ -114,7 +113,7 @@ then
-e "s|^%define releasen .*$|%define releasen ${hb_verstat}|g" \
-e "s|^%define hb_ccpath .*$|%define hb_ccpath ${HB_CCPATH}|g" \
-e "s|^%define hb_ccpref .*$|%define hb_ccpref ${HB_CCPREFIX}|g" \
package/harbour-win.spec > ${RPMDIR}/SPECS/harbour-win.spec
harbour-win.spec > ${RPMDIR}/SPECS/harbour-win.spec
if which rpmbuild >/dev/null 2>&1
then
RPMBLD="rpmbuild"

View File

@@ -24,8 +24,9 @@ hb_currdir=`pwd`
hb_archopt="-czf"
[ -n "${hb_ext}" ] || hb_ext=".tar.gz"
if [ -f package/mpkg_ver.sh ]; then
hb_rootdir="."
if [ -f mpkg_ver.sh ]; then
hb_rootdir=".."
else
hb_rootdir=`dirname $0`
fi
@@ -102,3 +103,5 @@ else
(cd "$hb_rootdir";$hb_archbin $hb_archopt $hb_filename --files-from "$hb_flst")
fi
[ "$hb_rmflst" != "yes" ] || rm -fR "$hb_rootdir/$hb_flst"
cd "$hb_currdir"