Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-08

3rd patch fp2html

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Darius Blaszijk

Here's a new patch for fp2html.

Changes are:
- changed parameter interpretation to getopts version
- delete SplitName function
- delete ESpace function
- fixed closing template filehandle template file
- added show helper function for verbosity
- fixed -O option
- improved helpscreen
- output to other directory
- added recursive directories search option
- removed casesensitivity on filenames
- removed string size for filenames
- improved error messages

I'm still planning to do the following;

- implement variables for .fp files instead of templates only

Darius

Reply by email

Darius Blaszijk
to Darius Blaszijk

Btw: could someone please check the makefile in the ./html/down directory? I did a make to check if anything was broken or not, but the makefile stopped when entering the down directory. This makefile breaks on the 'f' variable which it doesn't expect there apparently.
The files created in the base directory however are identical to the previous version, so I don't expect anything to be broken.

Darius

Earlier message 37 lines
----- Original Message ----- From: "Darius Blaszijk" To: "FPC developers' list" Sent: Wednesday, August 09, 2006 1:56 PM Subject: [fpc-devel] 3rd patch fp2html > Here's a new patch for fp2html. > > Changes are: > - changed parameter interpretation to getopts version > - delete SplitName function > - delete ESpace function > - fixed closing template filehandle template file > - added show helper function for verbosity > - fixed -O option > - improved helpscreen > - output to other directory > - added recursive directories search option > - removed casesensitivity on filenames > - removed string size for filenames > - improved error messages > > I'm still planning to do the following; > > - implement variables for .fp files instead of templates only > > Darius -------------------------------------------------------------------------------- > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-devel >

Reply by email

Marco van de Voort
to Darius Blaszijk
Show quoted text 6 lines
Btw: could someone please check the makefile in the ./html/down directory? I did a make to check if anything was broken or not, but the makefile stopped when entering the down directory. This makefile breaks on the 'f' variable which it doesn't expect there apparently. The files created in the base directory however are identical to the previous version, so I don't expect anything to be broken.

Seems to compile fine here.

Reply by email

Darius Blaszijk
to Marco van de Voort

Marco,

I got the following message

make

>>>

snip
<<<<
fp2html.exe packages/x11.fp
fp2html.exe packages/zlib.fp
fp2html.exe templatemirror.fp
ppc386 -Xs makemirror.pp
Free Pascal Compiler version 2.0.2 [2005/11/26] for i386 Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Win32 for i386
Compiling makemirror.pp
makemirror.pp(189,3) Note: Local variable "skip" is assigned but never used makemirror.pp(191,6) Note: Local variable "orgs" is assigned but never used makemirror.pp(194,3) Note: Local variable "cntidx" not used Linking makemirror.exe
273 Lines compiled, 0.2 sec
rm -f makemirror.o
make -C down all
make[1]: Entering directory `C:/Develop/modelbuilder/contrib/html/down' for f in arm i386 powerpc sparc m68k x86_64 docs old source ; do make -C $f all
f niet verwacht op dit moment.
make[1]: *** [all] Error 255
make[1]: Leaving directory `C:/Develop/modelbuilder/contrib/html/down' make: *** [download] Error 2

Darius

Earlier message 21 lines
----- Original Message ----- From: "Marco van de Voort" To: "FPC developers' list" Sent: Wednesday, August 09, 2006 2:16 PM Subject: Re: [fpc-devel] 3rd patch fp2html >> Btw: could someone please check the makefile in the ./html/down >> directory? I >> did a make to check if anything was broken or not, but the makefile >> stopped >> when entering the down directory. This makefile breaks on the 'f' >> variable >> which it doesn't expect there apparently. >> The files created in the base directory however are identical to the >> previous version, so I don't expect anything to be broken. > > Seems to compile fine here. > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Peter Vreman
to Darius Blaszijk
Show quoted text 34 lines
Marco, I got the following message make >>>> snip <<<< fp2html.exe packages/x11.fp fp2html.exe packages/zlib.fp fp2html.exe templatemirror.fp ppc386 -Xs makemirror.pp Free Pascal Compiler version 2.0.2 [2005/11/26] for i386 Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Win32 for i386 Compiling makemirror.pp makemirror.pp(189,3) Note: Local variable "skip" is assigned but never used makemirror.pp(191,6) Note: Local variable "orgs" is assigned but never used makemirror.pp(194,3) Note: Local variable "cntidx" not used Linking makemirror.exe 273 Lines compiled, 0.2 sec rm -f makemirror.o make -C down all make[1]: Entering directory `C:/Develop/modelbuilder/contrib/html/down' for f in arm i386 powerpc sparc m68k x86_64 docs old source ; do make -C $f all f niet verwacht op dit moment. make[1]: *** [all] Error 255 make[1]: Leaving directory `C:/Develop/modelbuilder/contrib/html/down' make: *** [download] Error 2

The Makefile is made for Unix. It should also work under Cygwin. But not on CMD.EXE

Reply by email

Michael Van Canneyt
to Darius Blaszijk: Here's a new patch for fp2html. Changes are: - changed parameter interpretation to…
Darius Blaszijk wrote 13 lines
Here's a new patch for fp2html. Changes are: - changed parameter interpretation to getopts version - delete SplitName function - delete ESpace function - fixed closing template filehandle template file - added show helper function for verbosity - fixed -O option - improved helpscreen - output to other directory - added recursive directories search option - removed casesensitivity on filenames

Whow !?

This should work on a Unix system, so it had better be case sensitive !? Or am I missing something ?

Michael.

Reply by email

Darius Blaszijk
to Michael Van Canneyt

Sorry Michael, this is a typo of mine. I mean to say I made it case sensitive (it is not currently). What happened previously is that all files where put to lowercase, the extension was saved and then written to output. So in effect the files MyFile.fp and myfile.fp would both be written to myfile.html.
I removed the case conversion so now you should get two files instead. I'm talking about the procedure Convert line 232: fn := lowercase(fn);

Darius

Earlier message 34 lines
----- Original Message ----- From: "Michael Van Canneyt" To: "FPC developers' list" Sent: Wednesday, August 09, 2006 3:28 PM Subject: Re: [fpc-devel] 3rd patch fp2html > > > On Wed, 9 Aug 2006, Darius Blaszijk wrote: > >> Here's a new patch for fp2html. >> >> Changes are: >> - changed parameter interpretation to getopts version >> - delete SplitName function >> - delete ESpace function >> - fixed closing template filehandle template file >> - added show helper function for verbosity >> - fixed -O option >> - improved helpscreen >> - output to other directory >> - added recursive directories search option >> - removed casesensitivity on filenames > > Whow !? > > This should work on a Unix system, so it had better be case sensitive !? > Or am I missing something ? > > Michael. > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email