Forums

Html Validator and HTMLpedia forums
It is currently Tue Jan 23, 2018 5:09 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Html Validator 0.950 on FreeBSD 8.2 i386 (build script)
PostPosted: Sun Dec 11, 2011 2:51 am 
Offline

Joined: Sun Feb 01, 2009 6:32 am
Posts: 12
I compiled.
But firefox can't restart.

Code:
#!/bin/sh

cd /usr/ports/www/firefox
make patch
fetch http://htmlvalidator.sourceforge.net/mozilla/tidy_09x_source.zip
unzip -q tidy_09x_source.zip
mv mozilla_tidy_source/tidy_jsc work/mozilla-release
mv mozilla_tidy_source/mozilla/extensions/tidy work/mozilla-release/extensions
env "CONFIGURE_ARGS=--enable-extensions=tidy --enable-cpp-rtti" make BATCH=yes configure
cd work/mozilla-release
mkdir objdir-ff-release
cd objdir-ff-release
cd ../extensions/tidy
sed -i .bak 's/ -MT//g;s/USE_STATIC_LIBS/FORCE_SHARED_LIB/' src/Makefile
patch -p0 <<EOF
--- src/SpValid.cpp   2011-12-02 07:31:32.000000000 +0900
+++ src/SpValid.cpp
@@ -337,8 +337,10 @@


ValidMessageEventHandler::~ValidMessageEventHandler()

{

+#if 0

   fprintf( stderr, "info: %d, warning: %d, error: %d\n", infoCount_, warningCount_, errorCount_ );

   fprintf( stderr, "Done\n" );

+#endif



   SpValidApp * app = (SpValidApp*)messenger_;

   app->res_->infoCount_ = infoCount_;

--- src/libOpenSP.cpp   2011-12-02 07:31:32.000000000 +0900
+++ src/libOpenSP.cpp
@@ -36,6 +36,7 @@
  *

  * ***** END LICENSE BLOCK ***** */



+#pragma GCC visibility push(default)
//--------------------------------------------------------------------------

//                           I N C L U D E

//--------------------------------------------------------------------------

--- src/libTidy.cpp   2011-12-02 07:31:32.000000000 +0900
+++ src/libTidy.cpp
@@ -42,6 +42,7 @@

#include <stdio.h>
#include <string.h>
+#pragma GCC visibility push(default)

extern "C"
{
@@ -70,7 +71,7 @@


DiagLog mDiagLog;



-static char * mBaseUrl = TY_(tmbstrdup)(TALLOC, "" );

+char * mBaseUrl = TY_(tmbstrdup)(TALLOC, "" );



void libTidyCopyString( char ** dest, const char * source )

{

EOF
sh build_all.sh
cd ../../../..
make
cd work/mozilla-release/
mkdir -p firefox/mozilla-central/mozilla-central
cd firefox/mozilla-central/mozilla-central
ln -s ../../../../mozilla-release objdir-ff-release
cd ../../../tidy_jsc
sed -i .bak 's/Linux/FreeBSD/Ig' build_xpi.sh
sed -i .bak 's/nsTidy/libnstidy.so/Ig' xpi/content/tidy/tidyLib.js
sed -i .bak 's/binary-component/#binary-component/; s/interfaces/#interfaces/' chrome.manifest
sed -i .bak 's/nstidy\.dll/libnstidy.so/' install.js
sh build_xpi.sh


 
 Profile  
 
 Post subject: Re: Html Validator 0.950 on FreeBSD 8.2 i386 (build script)
PostPosted: Sun Dec 11, 2011 2:13 pm 
Offline
Site Admin

Joined: Sat Mar 24, 2007 10:17 am
Posts: 213
Hi Bqa01573,

Very interesting. And this is helping. How did you came to add :

1) --enable-cpp-rtti in env "CONFIGURE_ARGS=--enable-extensions=tidy --enable-cpp-rtti" make BATCH=yes configure
2) sed -i .bak 's/ -MT//g;s/USE_STATIC_LIBS/FORCE_SHARED_LIB/' src/Makefile
3) #pragma GCC visibility push(default)

I see also that the build file should be adapted to accept FreeBSD.
For the crash, I would suspect the point 2 first.
I am not sure how to solve point 1 correctly neither since the way that Firefox is builded and the requirement of OpenSP.

I am close to the point to make a makefile from scratch and to compile outside of FF.

Thanks

Marc


 
 Profile  
 
 Post subject: Re: Html Validator 0.950 on FreeBSD 8.2 i386 (build script)
PostPosted: Tue Dec 13, 2011 10:58 am 
Offline
Site Admin

Joined: Sat Mar 24, 2007 10:17 am
Posts: 213
I produced a new version 0.951.
* The makefile is changed quite a lot.
* It produces too big files ?
* And it works on linux 32 bits

Notice I have added --enable-cpp-rtti in the compilation note:

http://www.htmlpedia.org/wiki/FirefoxCompilation

Regards,

Marc


 
 Profile  
 
 Post subject: Re: Html Validator 0.950 on FreeBSD 8.2 i386 (build script)
PostPosted: Sun Dec 18, 2011 5:40 pm 
Offline

Joined: Sun Feb 01, 2009 6:32 am
Posts: 12
Thank you.

I Compiled Html Validator 0.951 on FreeBSD 8.2 i386.
And firefox can restart.

Code:
#!/bin/sh
cd /usr/ports/www/firefox
make patch
fetch http://htmlvalidator.sourceforge.net/mozilla/tidy_09x_source.zip
unzip -q tidy_09x_source.zip
mv mozilla_tidy_source/tidy_jsc work/mozilla-release
mv mozilla_tidy_source/mozilla/extensions/tidy work/mozilla-release/extensions
env "CONFIGURE_ARGS=--enable-extensions=tidy --enable-cpp-rtti" make BATCH=yes configure
cd work/mozilla-release/extensions/tidy
sed -i .bak 's/objdir-ff-release//' build_all.sh
sed -i .bak 's/ -MT//g;s/USE_STATIC_LIBS/FORCE_SHARED_LIB/' src/Makefile
sed -i .bak '/fprintf/d' src/SpValid.cpp
sed -i .bak '/putenv/d' src/libOpenSP.cpp
sh build_all.sh
cd ../../../..
make
cd work/mozilla-release/tidy_jsc
sed -i .bak 's/firefox\/mozilla-central\/mozilla-central\/objdir-ff-release\///' build_xpi.sh
sh build_xpi.sh


 
 Profile  
 
 Post subject: Re: Html Validator 0.950 on FreeBSD 8.2 i386 (build script)
PostPosted: Thu Dec 29, 2011 6:10 pm 
Offline
Site Admin

Joined: Sat Mar 24, 2007 10:17 am
Posts: 213
Hi Bqa01573,

Thanks for the good news, and the clear description. I wonder 2 things:
- is it possible to get a link to the XPI for other FreeBSD users ?
- Why do you remove
a) the fprintf
b) and the putenv ?

Thanks,

Marc


 
 Profile  
 
 Post subject: Re: Html Validator 0.950 on FreeBSD 8.2 i386 (build script)
PostPosted: Fri Dec 30, 2011 10:27 am 
Offline
Site Admin

Joined: Sat Mar 24, 2007 10:17 am
Posts: 213
Coming back about the putenv removal. Practically this:

Quote:
// Character sets
// The sgml-lib and the file name come from a nsTidy.idl as string and are in System Charset
// The file content is in UTF8
putenv( "SP_CHARSET_FIXED=NO" );
putenv( "SP_ENCODING=UTF-8" );
putenv( "SP_BCTF=UTF-8" );


If you remove this, you will not be able to decode non-ascii page.

Ex :
* if you go to www.sony.co.jp, look at the source and there will be a lot
of errors about invalid character (exactly: non SGML character number) because the charset
of the parser is not set to UTF8 (ie, the charset in which the page is coming from Firefox)

I think you should set this back. Unless there was a very good reason to remove it !

Thanks,

Marc


 
 Profile  
 
 Post subject: Re: Html Validator 0.950 on FreeBSD 8.2 i386 (build script)
PostPosted: Sun Jan 01, 2012 5:31 pm 
Offline

Joined: Sun Feb 01, 2009 6:32 am
Posts: 12
mgueury wrote:
- Why do you remove
b) and the putenv ?

I think it's a FreeBSD bug.
http://www.freebsd.org/cgi/man.cgi?query=putenv&manpath=FreeBSD+6.4-RELEASE+and+Ports&format=ascii
Quote:
BUGS
Successive calls to setenv() or putenv() assigning a differently sized
value to the same name will result in a memory leak. The FreeBSD seman-
tics for these functions (namely, that the contents of value are copied
and that old values remain accessible indefinitely) make this bug
unavoidable. Future versions may eliminate one or both of these semantic
guarantees in order to fix the bug.

http://www.freebsd.org/cgi/man.cgi?query=putenv&manpath=FreeBSD+8.2-RELEASE&format=ascii
Quote:
BUGS
Successive calls to setenv() that assign a larger-sized value than any
previous value to the same name will result in a memory leak. The
FreeBSD semantics for this function (namely, that the contents of value
are copied and that old values remain accessible indefinitely) make this
bug unavoidable. Future versions may eliminate one or both of these
semantic guarantees in order to fix the bug.


mgueury wrote:
* if you go to www.sony.co.jp, look at the source and there will be a lot
of errors about invalid character (exactly: non SGML character number) because the charset
of the parser is not set to UTF8 (ie, the charset in which the page is coming from Firefox)


So, I changed build script (add 1 patch).
Code:
#!/bin/sh
cd /usr/ports/www/firefox
make patch
fetch http://htmlvalidator.sourceforge.net/mozilla/tidy_09x_source.zip
unzip -q tidy_09x_source.zip
mv mozilla_tidy_source/tidy_jsc work/mozilla-release
mv mozilla_tidy_source/mozilla/extensions/tidy work/mozilla-release/extensions
env "CONFIGURE_ARGS=--enable-extensions=tidy --enable-cpp-rtti" make BATCH=yes configure
cd work/mozilla-release/extensions/tidy
sed -i .bak 's/objdir-ff-release//' build_all.sh
sed -i .bak 's/ -MT//g;s/USE_STATIC_LIBS/FORCE_SHARED_LIB/' src/Makefile
sed -i .bak '/fprintf/d' src/SpValid.cpp
sed -i .bak '/putenv/d' src/libOpenSP.cpp
patch -p0 <<EOF
--- opensp/cpp/CmdLineApp.cpp
+++ opensp/cpp/CmdLineApp.cpp
@@ -51,7 +51,7 @@
#ifdef WIN32
#define SP_DEFAULT_ENCODING SP_T("WINDOWS")
#else
-#define SP_DEFAULT_ENCODING  SP_T("IS8859-1")
+#define SP_DEFAULT_ENCODING  SP_T("UTF-8")
#endif
#endif /* not SP_DEFAULT_ENCODING */

@@ -514,7 +514,7 @@
   if (codingName)
     codingSystem_ = lookupCodingSystem(codingName);
#ifdef SP_MULTI_BYTE
-  if (!codingSystem_ && !internalCharsetIsDocCharset_)
+  if (!codingSystem_)
     codingSystem_ = lookupCodingSystem(SP_DEFAULT_ENCODING);
#endif
   if (!codingSystem_
EOF
sh build_all.sh
cd ../../../..
make
cd work/mozilla-release/tidy_jsc
sed -i .bak 's/firefox\/mozilla-central\/mozilla-central\/objdir-ff-release\///' build_xpi.sh
sh build_xpi.sh


mgueury wrote:
- Why do you remove
a) the fprintf

It's for no messages on cosole with start this command, for example.
Code:
$ firefox

Quote:
info: 0, warning: 0, error: 0
Done


mgueury wrote:
- is it possible to get a link to the XPI for other FreeBSD users ?

Why do HTML Validator build need a firefox source tree?
I don't have FreeBSD amd64, FreeBSD 7.4, NetBSD, OpenBSD, and so on.


 
 Profile  
 
 Post subject: Html Validator 0.952 on FreeBSD 9.0 amd64 (build script)
PostPosted: Sat Mar 31, 2012 5:28 am 
Offline

Joined: Sun Feb 01, 2009 6:32 am
Posts: 12
bqa01573 wrote:
Why do HTML Validator build need a firefox source tree?


I compiled without a firefox source tree.

Save this two files, and execute.

Code:
#!/bin/sh

fetch http://htmlvalidator.sourceforge.net/mozilla/tidy_09x_source.zip
unzip -q tidy_09x_source.zip
cd mozilla_tidy_source/mozilla/extensions/tidy
sed -i .bak 's/objdir-ff-release//' build_all.sh
sed -i .bak '/fprintf/d' src/SpValid.cpp
sed -i .bak '/putenv/d' src/libOpenSP.cpp
patch -p0 <<EOF
--- opensp/cpp/CmdLineApp.cpp
+++ opensp/cpp/CmdLineApp.cpp
@@ -51,7 +51,7 @@
#ifdef WIN32
#define SP_DEFAULT_ENCODING SP_T("WINDOWS")
#else
-#define SP_DEFAULT_ENCODING  SP_T("IS8859-1")
+#define SP_DEFAULT_ENCODING  SP_T("UTF-8")
#endif
#endif /* not SP_DEFAULT_ENCODING */

@@ -514,7 +514,7 @@
   if (codingName)
     codingSystem_ = lookupCodingSystem(codingName);
#ifdef SP_MULTI_BYTE
-  if (!codingSystem_ && !internalCharsetIsDocCharset_)
+  if (!codingSystem_)
     codingSystem_ = lookupCodingSystem(SP_DEFAULT_ENCODING);
#endif
   if (!codingSystem_
EOF
sh build_all.sh
cd src
cp ../../../../../Makefile .
gmake
cd ../../../../tidy_jsc
sed -i .bak 's|firefox/mozilla-central/mozilla-central/objdir-ff-release/dist/bin|mozilla/extensions/tidy/src|' build_xpi.sh
sh build_xpi.sh


Code:
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#

# ==== SRCS ====

CPPSRCS      = SpValid.cpp diaglog.cpp libOpenSP.cpp libTidy.cpp links.cpp $(addprefix ../opensp/cpp/,MessageEventHandler.cpp Allocator.cpp ArcEngine.cpp Attribute.cpp Big5CodingSystem.cpp CharsetDecl.cpp CharsetInfo.cpp CharsetRegistry.cpp CmdLineApp.cpp CodingSystem.cpp CodingSystemKit.cpp ConsoleOutput.cpp ContentState.cpp ContentToken.cpp DescriptorManager.cpp Dtd.cpp DtdDeclEventHandler.cpp EUCJPCodingSystem.cpp ElementType.cpp Entity.cpp EntityApp.cpp EntityCatalog.cpp EntityDecl.cpp EntityManager.cpp ErrnoMessageArg.cpp ErrorCountEventHandler.cpp Event.cpp ExtendEntityManager.cpp ExternalId.cpp Fixed2CodingSystem.cpp Fixed4CodingSystem.cpp Group.cpp Hash.cpp IListBase.cpp Id.cpp IdentityCodingSystem.cpp InputSource.cpp InternalInputSource.cpp Link.cpp LinkProcess.cpp LiteralStorage.cpp Location.cpp Lpd.cpp Markup.cpp Message.cpp MessageArg.cpp MessageFormatter.cpp MessageReporter.cpp MessageTable.cpp ModeInfo.cpp Notation.cpp NotationStorage.cpp NumericCharRefOrigin.cpp OffsetOrderedList.cpp OpenElement.cpp OutputByteStream.cpp OutputCharStream.cpp OutputState.cpp Param.cpp Parser.cpp ParserApp.cpp ParserMessages.cpp ParserOptions.cpp ParserState.cpp Partition.cpp PosixStorage.cpp Recognizer.cpp RewindStorageObject.cpp SJISCodingSystem.cpp SOEntityCatalog.cpp Sd.cpp SdText.cpp SearchResultMessageArg.cpp SgmlParser.cpp ShortReferenceMap.cpp StorageManager.cpp SubstTable.cpp Syntax.cpp Text.cpp TokenMessageArg.cpp TranslateCodingSystem.cpp TrieBuilder.cpp URLStorage.cpp UTF16CodingSystem.cpp UTF8CodingSystem.cpp Undo.cpp UnicodeCodingSystem.cpp UnivCharsetDesc.cpp XMLCodingSystem.cpp parseAttribute.cpp parseCommon.cpp parseDecl.cpp parseInstance.cpp parseMode.cpp parseParam.cpp parseSd.cpp)
#CPPSRCS_DELETE   := $(word 102,$(CPPSRCS))
#CPPSRCS   := $(filter-out $(CPPSRCS_DELETE),$(CPPSRCS))

CSRCS      = translation.c $(addprefix ../tidy/src/, access.c alloc.c attrdict.c attrs.c buffio.c clean.c config.c entities.c fileio.c istack.c lexer.c localize.c mappedio.c parser.c pprint.c streamio.c tags.c tidylib.c tmbstr.c utf8.c)
#CSRCS_DELETE   := $(word 22,$(CSRCS))
#CSRCS      := $(filter-out $(CSRCS_DELETE),$(CSRCS))

# ==== OBJS ====
OBJ_SUFFIX   = o
_OBJS      = $(CSRCS:.c=.$(OBJ_SUFFIX)) $(CPPSRCS:.cpp=.$(OBJ_SUFFIX))
OBJS      = $(strip $(_OBJS))

OUTOPTION   = -o

# ==== common ====
CC      = cc
CCC      = c++
CXX      = c++

DEFINES      = -DSP_NAMESPACE=OpenSP -DSP_MULTI_BYTE
INCLUDES   = -I. -I/usr/local/include -I../tidy/include -I../tidy/src -I../opensp/include -I../opensp/generic
DSO_PIC_CFLAGS   = -fPIC

OS_CFLAGS   = -Wall -O2
OS_CXXFLAGS   = -Wall -O2

CFLAGS      = $(OS_CFLAGS)
CXXFLAGS   = $(OS_CXXFLAGS)

COMPILE_CFLAGS   = $(DEFINES) $(INCLUDES) $(DSO_PIC_CFLAGS) $(CFLAGS)
COMPILE_CXXFLAGS   = $(DEFINES) $(INCLUDES) $(DSO_PIC_CFLAGS) $(CXXFLAGS)

GLOBAL_DEPS   = Makefile

# ==== libs ====
LIBRARY_NAME   = nstidy

DLL_PREFIX   = lib
DLL_SUFFIX   = .so
SHARED_LIBRARY_NAME   = $(LIBRARY_NAME)
SHARED_LIBRARY   = $(DLL_PREFIX)$(SHARED_LIBRARY_NAME)$(DLL_SUFFIX)

DSO_LDOPTS   = -shared
MKSHLIB      = $(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@
EXPAND_MKSHLIB   = $(MKSHLIB)

LDFLAGS      =
STRIP      = strip

# ==== clean ====
TARGETS      = $(SHARED_LIBRARY)
ALL_TRASH   = $(TARGETS) $(OBJS)

# ==== Rules ====
.PHONY: default libs clean

default::
   $(MAKE) libs
#   @echo delete:$(CSRCS_DELETE):$(CPPSRCS_DELETE) >&2

libs:: $(SHARED_LIBRARY)

clean::
   -$(RM) $(ALL_TRASH)

$(SHARED_LIBRARY): $(OBJS) $(GLOBAL_DEPS)
   $(RM) $@
   $(EXPAND_MKSHLIB) $(OBJS) $(LDFLAGS)
   chmod +x $@
   $(STRIP) $@

%.o: %.c $(GLOBAL_DEPS)
   $(CC) $(OUTOPTION)$@ -c $(COMPILE_CFLAGS) $<

%.o: %.cpp $(GLOBAL_DEPS)
   $(CCC) $(OUTOPTION)$@ -c $(COMPILE_CXXFLAGS) $<


 
 Profile  
 
 Post subject: Html Validator 0.952 on Fedora 14(i686) and FreeBSD 9.0(amd6
PostPosted: Mon Apr 02, 2012 3:11 pm 
Offline

Joined: Sun Feb 01, 2009 6:32 am
Posts: 12
I compiled on Fedora 14(i686) and FreeBSD 9.0(amd64)
Code:
#!/bin/sh

#fetch http://htmlvalidator.sourceforge.net/mozilla/tidy_09x_source.zip
unzip -q tidy_09x_source.zip
chmod -R 755 mozilla_tidy_source
cd mozilla_tidy_source/mozilla/extensions/tidy
sed -i.bak 's/objdir-ff-release//' build_all.sh
sed -i.bak '/fprintf/d' src/SpValid.cpp
sed -i.bak '/putenv/d' src/libOpenSP.cpp
patch -p0 <<EOF
--- opensp/cpp/CmdLineApp.cpp
+++ opensp/cpp/CmdLineApp.cpp
@@ -51,7 +51,7 @@
#ifdef WIN32
#define SP_DEFAULT_ENCODING SP_T("WINDOWS")
#else
-#define SP_DEFAULT_ENCODING  SP_T("IS8859-1")
+#define SP_DEFAULT_ENCODING  SP_T("UTF-8")
#endif
#endif /* not SP_DEFAULT_ENCODING */

@@ -514,7 +514,7 @@
   if (codingName)
     codingSystem_ = lookupCodingSystem(codingName);
#ifdef SP_MULTI_BYTE
-  if (!codingSystem_ && !internalCharsetIsDocCharset_)
+  if (!codingSystem_)
     codingSystem_ = lookupCodingSystem(SP_DEFAULT_ENCODING);
#endif
   if (!codingSystem_
EOF
sh build_all.sh
cd src
cp ../../../../../Makefile .
gmake
cd ../../../../tidy_jsc
sed -i.bak 's|firefox/mozilla-central/mozilla-central/objdir-ff-release/dist/bin|mozilla/extensions/tidy/src|' build_xpi.sh
sh build_xpi.sh


Code:
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#

# ==== SRCS ====

CPPSRCS      = SpValid.cpp diaglog.cpp libOpenSP.cpp libTidy.cpp links.cpp $(addprefix ../opensp/cpp/,MessageEventHandler.cpp Allocator.cpp ArcEngine.cpp Attribute.cpp Big5CodingSystem.cpp CharsetDecl.cpp CharsetInfo.cpp CharsetRegistry.cpp CmdLineApp.cpp CodingSystem.cpp CodingSystemKit.cpp ConsoleOutput.cpp ContentState.cpp ContentToken.cpp DescriptorManager.cpp Dtd.cpp DtdDeclEventHandler.cpp EUCJPCodingSystem.cpp ElementType.cpp Entity.cpp EntityApp.cpp EntityCatalog.cpp EntityDecl.cpp EntityManager.cpp ErrnoMessageArg.cpp ErrorCountEventHandler.cpp Event.cpp ExtendEntityManager.cpp ExternalId.cpp Fixed2CodingSystem.cpp Fixed4CodingSystem.cpp Group.cpp Hash.cpp IListBase.cpp Id.cpp IdentityCodingSystem.cpp InputSource.cpp InternalInputSource.cpp Link.cpp LinkProcess.cpp LiteralStorage.cpp Location.cpp Lpd.cpp Markup.cpp Message.cpp MessageArg.cpp MessageFormatter.cpp MessageReporter.cpp MessageTable.cpp ModeInfo.cpp Notation.cpp NotationStorage.cpp NumericCharRefOrigin.cpp OffsetOrderedList.cpp OpenElement.cpp OutputByteStream.cpp OutputCharStream.cpp OutputState.cpp Param.cpp Parser.cpp ParserApp.cpp ParserMessages.cpp ParserOptions.cpp ParserState.cpp Partition.cpp PosixStorage.cpp Recognizer.cpp RewindStorageObject.cpp SJISCodingSystem.cpp SOEntityCatalog.cpp Sd.cpp SdText.cpp SearchResultMessageArg.cpp SgmlParser.cpp ShortReferenceMap.cpp StorageManager.cpp SubstTable.cpp Syntax.cpp Text.cpp TokenMessageArg.cpp TranslateCodingSystem.cpp TrieBuilder.cpp URLStorage.cpp UTF16CodingSystem.cpp UTF8CodingSystem.cpp Undo.cpp UnicodeCodingSystem.cpp UnivCharsetDesc.cpp XMLCodingSystem.cpp parseAttribute.cpp parseCommon.cpp parseDecl.cpp parseInstance.cpp parseMode.cpp parseParam.cpp parseSd.cpp)

CSRCS      = translation.c $(addprefix ../tidy/src/, access.c alloc.c attrdict.c attrs.c buffio.c clean.c config.c entities.c fileio.c istack.c lexer.c localize.c mappedio.c parser.c pprint.c streamio.c tags.c tidylib.c tmbstr.c utf8.c)

# ==== OBJS ====
OBJ_SUFFIX   = o
_OBJS      = $(CSRCS:.c=.$(OBJ_SUFFIX)) $(CPPSRCS:.cpp=.$(OBJ_SUFFIX))
OBJS      = $(strip $(_OBJS))

OUTOPTION   = -o

# ==== common ====
CC      = cc
CCC      = c++
CXX      = c++

DEFINES      = -DSP_NAMESPACE=OpenSP -DSP_MULTI_BYTE
INCLUDES   = -I. -I../tidy/include -I../tidy/src -I../opensp/include -I../opensp/generic
DSO_PIC_CFLAGS   = -fPIC

OS_CFLAGS   = -Wall -O2
OS_CXXFLAGS   = -Wall -O2

CFLAGS      = $(OS_CFLAGS)
CXXFLAGS   = $(OS_CXXFLAGS)

COMPILE_CFLAGS   = $(DEFINES) $(INCLUDES) $(DSO_PIC_CFLAGS) $(CFLAGS)
COMPILE_CXXFLAGS   = $(DEFINES) $(INCLUDES) $(DSO_PIC_CFLAGS) $(CXXFLAGS)

GLOBAL_DEPS   = Makefile

# ==== libs ====
LIBRARY_NAME   = nstidy

DLL_PREFIX   = lib
DLL_SUFFIX   = .so
SHARED_LIBRARY_NAME   = $(LIBRARY_NAME)
SHARED_LIBRARY   = $(DLL_PREFIX)$(SHARED_LIBRARY_NAME)$(DLL_SUFFIX)

DSO_LDOPTS   = -shared
MKSHLIB      = $(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@
EXPAND_MKSHLIB   = $(MKSHLIB)

LDFLAGS      =
STRIP      = strip

# ==== clean ====
TARGETS      = $(SHARED_LIBRARY)
ALL_TRASH   = $(TARGETS) $(OBJS)

# ==== Rules ====
.PHONY: default libs clean

default::
   $(MAKE) libs

libs:: $(SHARED_LIBRARY)

clean::
   -$(RM) $(ALL_TRASH)

$(SHARED_LIBRARY): $(OBJS) $(GLOBAL_DEPS)
   $(RM) $@
   $(EXPAND_MKSHLIB) $(OBJS) $(LDFLAGS)
   chmod +x $@
   $(STRIP) $@

%.o: %.c $(GLOBAL_DEPS)
   $(CC) $(OUTOPTION)$@ -c $(COMPILE_CFLAGS) $<

%.o: %.cpp $(GLOBAL_DEPS)
   $(CCC) $(OUTOPTION)$@ -c $(COMPILE_CXXFLAGS) $<


 
 Profile  
 
 Post subject: Html Validator 0 950 on FreeBSD 8 2 i386 build script
PostPosted: Mon Jan 01, 2018 6:44 pm 
Offline

Joined: Wed Dec 27, 2017 10:42 pm
Posts: 1
Location: Russia
hey all
I have been using Htm for quite some time but i want to know what computer script would be good along with html?

waiting for your replies.


 
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2002, 2006 phpBB Group
[ Time : 0.042s | 16 Queries | GZIP : Off ]