[Libreoffice-commits] .: icc/source
Bjoern Michaelsen
bmichaelsen at kemper.freedesktop.org
Tue Nov 29 11:08:41 PST 2011
icc/source/create_sRGB_profile/create_sRGB_profile.cpp | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 2c4537471c932b65e6f72e41881b505c4bbad12c
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date: Tue Nov 29 20:00:55 2011 +0100
dont mindlessly touch the icc-header file on every build
- this little gremlin touches the header file everytime it is run
- as icc is very low level, this causes a lot of pointless rebuild
- everything from vcl up gets relinked
- this slows every empty 'make build' down by more than 40 percent
- would really need to check if the file changed before writing, but as we
rarely change icc itself, I didnt bother with that
diff --git a/icc/source/create_sRGB_profile/create_sRGB_profile.cpp b/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
index cceb0c5..2d6b52f 100644
--- a/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
+++ b/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
@@ -474,6 +474,11 @@ int main(int argc, char* argv[])
profile.Write(&out);
out.Close();
+ if(FILE *headerfile_exists = fopen(hxx_file_name,"r"))
+ {
+ fclose(headerfile_exists);
+ exit(0);
+ }
FILE *headerfile = fopen(hxx_file_name,"w");
//print OpenOffice standard file header
More information about the Libreoffice-commits
mailing list