Files
harbour-core/tests/stripdoc.hb
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

28 lines
512 B
Plaintext

/*
* Strips HBDOC docs from source files.
*
* Copyright 2010 Viktor Szakats (harbour syenar.net)
* www - http://harbour-project.org
*
*/
#pragma -w3
#pragma -km+
#pragma -ko+
#include "directry.ch"
PROCEDURE Main()
LOCAL aFile
FOR EACH aFile IN Directory( hb_osFileMask() )
IF Right( aFile[ F_NAME ], 2 ) == ".c" .OR. ;
Right( aFile[ F_NAME ], 4 ) == ".prg"
hb_MemoWrit( aFile[ F_NAME ], __hbdoc_FilterOut( MemoRead( aFile[ F_NAME ] ) ) )
ENDIF
NEXT
RETURN