2009-02-23 22:17 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
! Fixed bug in path normalization which stripped leading
(root) path separator. Guy, could you please retest now?
- bin/hb-mkdll.bat
+ bin/hb-mkdyn.bat
* bin/postinst.bat
* harbour-win-spec
* harbour-wce-spec
* harbour.spec
* bin/postinst.sh
* bin/hb-func.sh
- bin/hb-mkslib.sh
+ bin/hb-mkdyn.sh
* Synced the name of these tools with similar function,
name also converted to 8.3.
; NOTE: lib/dll creation functionality (which is the
difference now between .sh and .bat flavour) may
once in the future be implemented in hbmk2. See
existing TODO there.
This commit is contained in:
@@ -8,6 +8,28 @@
|
||||
2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
|
||||
*/
|
||||
|
||||
2009-02-23 22:17 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
|
||||
* utils/hbmk2/hbmk2.prg
|
||||
! Fixed bug in path normalization which stripped leading
|
||||
(root) path separator. Guy, could you please retest now?
|
||||
|
||||
- bin/hb-mkdll.bat
|
||||
+ bin/hb-mkdyn.bat
|
||||
* bin/postinst.bat
|
||||
* harbour-win-spec
|
||||
* harbour-wce-spec
|
||||
* harbour.spec
|
||||
* bin/postinst.sh
|
||||
* bin/hb-func.sh
|
||||
- bin/hb-mkslib.sh
|
||||
+ bin/hb-mkdyn.sh
|
||||
* Synced the name of these tools with similar function,
|
||||
name also converted to 8.3.
|
||||
; NOTE: lib/dll creation functionality (which is the
|
||||
difference now between .sh and .bat flavour) may
|
||||
once in the future be implemented in hbmk2. See
|
||||
existing TODO there.
|
||||
|
||||
2009-02-23 19:36 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
|
||||
* utils/hbmk2/hbmk2.prg
|
||||
% Normalizing autodetected paths when system locations
|
||||
|
||||
@@ -766,15 +766,15 @@ mk_hblibso()
|
||||
full_lib_name_mt="lib${name}mt-${hb_ver}${lib_ext}"
|
||||
fi
|
||||
if [ -n "${HB_TOOLS_PREF}" ]; then
|
||||
hb_mkslib="${HB_BIN_INSTALL}/${HB_TOOLS_PREF}-mkslib"
|
||||
hb_mkdyn="${HB_BIN_INSTALL}/${HB_TOOLS_PREF}-mkdyn"
|
||||
else
|
||||
hb_mkslib="${HB_BIN_INSTALL}/hb-mkslib"
|
||||
hb_mkdyn="${HB_BIN_INSTALL}/hb-mkdyn"
|
||||
fi
|
||||
echo "Making ${full_lib_name}..."
|
||||
${hb_mkslib} ${full_lib_name} $LIBS ${linker_options}
|
||||
${hb_mkdyn} ${full_lib_name} $LIBS ${linker_options}
|
||||
if [ "${HB_ARCHITECTURE}" != "dos" ]; then
|
||||
echo "Making ${full_lib_name_mt}..."
|
||||
${hb_mkslib} ${full_lib_name_mt} $LIBSMT ${linker_options}
|
||||
${hb_mkdyn} ${full_lib_name_mt} $LIBSMT ${linker_options}
|
||||
fi
|
||||
for l in ${full_lib_name} ${full_lib_name_mt}
|
||||
do
|
||||
|
||||
@@ -80,7 +80,7 @@ trap cleanup EXIT &>/dev/null
|
||||
|
||||
if [ "${SLIB_EXT}" != ".dylib" ]; then
|
||||
|
||||
OTMPDIR="/tmp/hb-mkslib-$$"
|
||||
OTMPDIR="/tmp/hb-mkdyn-$$"
|
||||
rm -fR "${OTMPDIR}"
|
||||
mkdir -p "${OTMPDIR}"
|
||||
cd "${OTMPDIR}"
|
||||
@@ -18,7 +18,7 @@ goto inst_%HB_ARCHITECTURE%
|
||||
:inst_win
|
||||
rem Windows post install part
|
||||
|
||||
if "%OS%" == "Windows_NT" if "%HB_DLL%" == "yes" call %~dp0hb-mkdll.bat
|
||||
if "%OS%" == "Windows_NT" if "%HB_DLL%" == "yes" call %~dp0hb-mkdyn.bat
|
||||
|
||||
echo @"%%~dp0hbmk2.exe" -hbcc %%*> %HB_BIN_INSTALL%\hbcc.bat
|
||||
echo @"%%~dp0hbmk2.exe" -hbcmp %%*> %HB_BIN_INSTALL%\hbcmp.bat
|
||||
|
||||
@@ -60,21 +60,21 @@ then
|
||||
fi
|
||||
|
||||
if [ -n "${HB_TOOLS_PREF}" ]; then
|
||||
hb_mkslib="${HB_BIN_INSTALL}/${HB_TOOLS_PREF}-mkslib"
|
||||
rm -f "${hb_mkslib}"
|
||||
hb_mkdyn="${HB_BIN_INSTALL}/${HB_TOOLS_PREF}-mkdyn"
|
||||
rm -f "${hb_mkdyn}"
|
||||
sed -e "s/^# HB_ARCHITECTURE=\"\"\$/HB_ARCHITECTURE=\"${HB_ARCHITECTURE}\"/g" \
|
||||
-e "s/^# CCPREFIX=\"\"\$/[ -n \"\${CCPREFIX}\" ] || CCPREFIX=\"${CCPREFIX}\"/g" \
|
||||
"${hb_root}/bin/hb-mkslib.sh" > "${hb_mkslib}" && \
|
||||
chmod 755 "${hb_mkslib}"
|
||||
"${hb_root}/bin/hb-mkdyn.sh" > "${hb_mkdyn}" && \
|
||||
chmod 755 "${hb_mkdyn}"
|
||||
elif [ "${HB_ARCHITECTURE}" = "sunos" ] || \
|
||||
[ "${HB_ARCHITECTURE}" = "hpux" ] || \
|
||||
! which install &>/dev/null; then
|
||||
rm -f "${HB_BIN_INSTALL}/hb-mkslib"
|
||||
cp "${hb_root}/bin/hb-mkslib.sh" "${HB_BIN_INSTALL}/hb-mkslib" && \
|
||||
chmod 755 "${HB_BIN_INSTALL}/hb-mkslib"
|
||||
rm -f "${HB_BIN_INSTALL}/hb-mkdyn"
|
||||
cp "${hb_root}/bin/hb-mkdyn.sh" "${HB_BIN_INSTALL}/hb-mkdyn" && \
|
||||
chmod 755 "${HB_BIN_INSTALL}/hb-mkdyn"
|
||||
elif [ "${HB_ARCHITECTURE}" != "dos" ]; then
|
||||
# Without -c some OSes _move_ the file instead of copying it!
|
||||
install -c -m 755 "${hb_root}/bin/hb-mkslib.sh" "${HB_BIN_INSTALL}/hb-mkslib"
|
||||
install -c -m 755 "${hb_root}/bin/hb-mkdyn.sh" "${HB_BIN_INSTALL}/hb-mkdyn"
|
||||
fi
|
||||
mk_hbtools "${HB_BIN_INSTALL}" "$@"
|
||||
if [ "$HB_COMPILER" = "gcc" ] || [ "$HB_COMPILER" = "gpp" ] || \
|
||||
|
||||
@@ -289,7 +289,7 @@ rm -fR $RPM_BUILD_ROOT
|
||||
%defattr(-,root,root,755)
|
||||
%doc doc/%{readme}
|
||||
|
||||
%{_bindir}/%{hb_pref}-mkslib
|
||||
%{_bindir}/%{hb_pref}-mkdyn
|
||||
%{_bindir}/%{hb_pref}-build
|
||||
%{_bindir}/%{hb_pref}cc
|
||||
%{_bindir}/%{hb_pref}cmp
|
||||
|
||||
@@ -289,7 +289,7 @@ rm -fR $RPM_BUILD_ROOT
|
||||
%defattr(-,root,root,755)
|
||||
%doc doc/%{readme}
|
||||
|
||||
%{_bindir}/%{hb_pref}-mkslib
|
||||
%{_bindir}/%{hb_pref}-mkdyn
|
||||
%{_bindir}/%{hb_pref}-build
|
||||
%{_bindir}/%{hb_pref}cc
|
||||
%{_bindir}/%{hb_pref}cmp
|
||||
|
||||
@@ -606,7 +606,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%verify(not md5 mtime) %config /etc/harbour/hb-charmap.def
|
||||
%{_bindir}/harbour
|
||||
%{_bindir}/hbpp
|
||||
%{_bindir}/hb-mkslib
|
||||
%{_bindir}/hb-mkdyn
|
||||
%{_bindir}/%{hb_pref}-build
|
||||
%{_bindir}/%{hb_pref}cc
|
||||
%{_bindir}/%{hb_pref}cmp
|
||||
|
||||
@@ -1930,7 +1930,7 @@ STATIC FUNCTION PathNormalize( cPath, lNormalize )
|
||||
cPath := DirAddPathSep( cPath )
|
||||
|
||||
IF lNormalize
|
||||
nLastSep := 0
|
||||
nLastSep := iif( Left( cPath, 1 ) == hb_osPathSeparator(), 1, 0 )
|
||||
DO WHILE ( nNextSep := hb_At( hb_osPathSeparator(), cPath, nLastSep + 1 ) ) > 0
|
||||
SWITCH SubStr( cPath, nLastSep + 1, nNextSep - nLastSep - 1 )
|
||||
CASE ".."
|
||||
|
||||
Reference in New Issue
Block a user