Author: mpiulachs
Date: Sun Nov 4 17:24:35 2007
New Revision: 30114
URL:
http://svn.reactos.org/svn/reactos?rev=30114&view=rev
Log:
fix a funny typo :)
Added:
branches/rbuild/reactos/tools/rbuild/creditsgenerator.cpp
- copied unchanged from r30112,
branches/rbuild/reactos/tools/rbuild/creditsgeneratorenerator.cpp
Removed:
branches/rbuild/reactos/tools/rbuild/creditsgeneratorenerator.cpp
Modified:
branches/rbuild/reactos/tools/rbuild/rbuild.mak
branches/rbuild/reactos/tools/rbuild/rbuild.vcproj
Removed: branches/rbuild/reactos/tools/rbuild/creditsgeneratorenerator.cpp
URL:
http://svn.reactos.org/svn/reactos/branches/rbuild/reactos/tools/rbuild/cre…
==============================================================================
--- branches/rbuild/reactos/tools/rbuild/creditsgeneratorenerator.cpp (original)
+++ branches/rbuild/reactos/tools/rbuild/creditsgeneratorenerator.cpp (removed)
@@ -1,125 +1,0 @@
-/*
- * Copyright (C) 2007 Marc Piulachs
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-#include <assert.h>
-#include "rbuild.h"
-
-using std::string;
-using std::vector;
-
-
-CreditsGenerator::CreditsGenerator ( const Project& project )
- : project ( project )
-{
-}
-
-CreditsGenerator::~CreditsGenerator ()
-{
-}
-
-void
-CreditsGenerator::Generate ()
-{
- GenerateTxt ();
- GenerateHeader ();
-}
-
-void
-CreditsGenerator::GenerateTxt ()
-{
- char* buf;
- char* s;
-
- buf = (char*) malloc ( 512*1024 );
- if ( buf == NULL )
- throw OutOfMemoryException ();
-
- s = buf;
- s = s + sprintf ( s, "ReactOS is available thanks to the work of:\n\n");
-
- for ( size_t i = 0; i < project.contributors.size (); i++ )
- {
- Contributor& contributor = *project.contributors[i];
-
- if (strlen(contributor.alias.c_str()))
- {
- s = s + sprintf ( s, "\t%s %s (%s)\n" ,
- contributor.firstName.c_str() ,
- contributor.lastName.c_str() ,
- contributor.alias.c_str());
- }
- else
- {
- s = s + sprintf ( s, "\t%s %s\n" ,
- contributor.firstName.c_str() ,
- contributor.lastName.c_str());
- }
-
- if (strlen(contributor.mail.c_str()))
- {
- s = s + sprintf ( s, "\t\t%s\n" , contributor.mail.c_str());
- }
-
- if (strlen(contributor.city.c_str()) > 0 &&
- strlen(contributor.country.c_str()) > 0)
- {
- s = s + sprintf ( s, "\t\t%s,%s\n" ,
- contributor.city.c_str() ,
- contributor.country.c_str());
- }
-
- s = s + sprintf ( s, "\n");
- }
-
-
- FileSupportCode::WriteIfChanged ( buf, NormalizeFilename (
Environment::GetIntermediatePath () + sSep + "CREDITS" ) );
-
- free ( buf );
-}
-
-void
-CreditsGenerator::GenerateHeader ()
-{
- char* buf;
- char* s;
-
- buf = (char*) malloc ( 512*1024 );
- if ( buf == NULL )
- throw OutOfMemoryException ();
-
- s = buf;
- s = s + sprintf ( s, "/* Auto generated */\n");
- s = s + sprintf ( s, "\n" );
- s = s + sprintf ( s, "const char* szAutoContributors[]= \n" );
- s = s + sprintf ( s, "{\n" );
-
- for ( size_t i = 0; i < project.contributors.size (); i++ )
- {
- Contributor& contributor = *project.contributors[i];
-
- s = s + sprintf ( s, "\t\"%s %s\",\n" ,
- contributor.firstName.c_str() ,
- contributor.lastName.c_str());
- }
-
- s = s + sprintf ( s, "\t0\n");
- s = s + sprintf ( s, "};\n" );
-
- FileSupportCode::WriteIfChanged ( buf, NormalizeFilename (
Environment::GetIntermediatePath () + sSep + "include" + sSep +
"reactos" + sSep + "autocontributors.h" ) );
-
- free ( buf );
-}
Modified: branches/rbuild/reactos/tools/rbuild/rbuild.mak
URL:
http://svn.reactos.org/svn/reactos/branches/rbuild/reactos/tools/rbuild/rbu…
==============================================================================
--- branches/rbuild/reactos/tools/rbuild/rbuild.mak (original)
+++ branches/rbuild/reactos/tools/rbuild/rbuild.mak Sun Nov 4 17:24:35 2007
@@ -266,7 +266,7 @@
testsupportcode.cpp \
modulesmanifestgenerator.cpp \
modulesresourcegenerator.cpp \
- creditsgeneratorenerator.cpp \
+ creditsgenerator.cpp \
wineresource.cpp \
xmlnode.cpp \
)
@@ -459,7 +459,7 @@
$(ECHO_CC)
${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
-$(RBUILD_INT_)creditsgeneratorenerator.o: $(RBUILD_BASE_)creditsgeneratorenerator.cpp
$(RBUILD_HEADERS) | $(RBUILD_INT)
+$(RBUILD_INT_)creditsgenerator.o: $(RBUILD_BASE_)creditsgenerator.cpp $(RBUILD_HEADERS) |
$(RBUILD_INT)
$(ECHO_CC)
${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
Modified: branches/rbuild/reactos/tools/rbuild/rbuild.vcproj
URL:
http://svn.reactos.org/svn/reactos/branches/rbuild/reactos/tools/rbuild/rbu…
==============================================================================
--- branches/rbuild/reactos/tools/rbuild/rbuild.vcproj (original)
+++ branches/rbuild/reactos/tools/rbuild/rbuild.vcproj Sun Nov 4 17:24:35 2007
@@ -684,10 +684,6 @@
</FileConfiguration>
</File>
<File
- RelativePath=".\creditsgeneratorenerator.cpp"
- >
- </File>
- <File
RelativePath="define.cpp"
<FileConfiguration
@@ -1332,6 +1328,10 @@
</File>
</Filter>
+ <File
+ RelativePath=".\creditsgenerator.cpp"
+ >
+ </File>
</Files>
<Globals>
</Globals>