* contrib/hbpost.hbm
! Fixed issue where prg flags were interpreted as
implib tool flags when building *.hbi files via
make.hbs. Caused problems for bcc, watcom and some
rarer other cases.
* config/beos/gcc.mk
* config/qnx/gcc.mk
* config/bsd/gcc.mk
* config/bsd/clang.mk
* config/bsd/pcc.mk
* config/wce/mingwarm.mk
* config/darwin/gcc.mk
* config/darwin/icc.mk
* config/darwin/clang.mk
* config/hpux/gcc.mk
* config/win/mingw.mk
* config/win/cygwin.mk
* config/linux/gcc.mk
* config/linux/icc.mk
* config/linux/clang.mk
* config/linux/sunpro.mk
* config/os2/gcc.mk
* config/sunos/gcc.mk
* config/sunos/sunpro.mk
% Using 'LD = $(CC)' instead of duplicating the
'CC = ' line with identical value.
* contrib/hbqt/THbQtUI.prg
* Minor.
* tests/hbdocext.prg
! Minor portability.
45 lines
905 B
Plaintext
45 lines
905 B
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* HBDOC extractor from source
|
|
*
|
|
* Copyright 2010 Viktor Szakats (harbour.01 syenar.hu)
|
|
* www - http://harbour-project.org
|
|
*
|
|
*/
|
|
|
|
#include "directry.ch"
|
|
#include "simpleio.ch"
|
|
|
|
PROCEDURE Main()
|
|
LOCAL aFile
|
|
LOCAL cFile
|
|
LOCAL cDst
|
|
|
|
LOCAL cHdr := ;
|
|
"/*" + hb_eol() +;
|
|
" * $" + "Id" + "$" + hb_eol() +;
|
|
" */" + hb_eol()
|
|
|
|
FOR EACH aFile IN Directory( hb_osFileMask() )
|
|
cFile := __hbdoc_ToSource( __hbdoc_FromSource( MemoRead( aFile[ F_NAME ] ) ) )
|
|
IF ! Empty( cFile )
|
|
cDst := FNameExtSet( aFile[ F_NAME ], ".txt" )
|
|
IF ! hb_FileExists( cDst )
|
|
? "Saving", cDst
|
|
hb_MemoWrit( cDst, cHdr + cFile )
|
|
ENDIF
|
|
ENDIF
|
|
NEXT
|
|
|
|
RETURN
|
|
|
|
STATIC FUNCTION FNameExtSet( cFileName, cExt )
|
|
LOCAL cDir, cName
|
|
|
|
hb_FNameSplit( cFileName, @cDir, @cName )
|
|
|
|
RETURN hb_FNameMerge( cDir, cName, cExt )
|