Add 'automatically generated file' headers to automatically generated files.
authorTor Andersson <[email protected]>
Tue, 13 Apr 2021 21:37:11 +0000 (23:37 +0200)
committerTor Andersson <[email protected]>
Thu, 26 Aug 2021 14:52:02 +0000 (16:52 +0200)
Makes it easier to avoid slapping on the copyright blob on these files in scripts.

Makefile
scripts/jsdump.sed
source/fitz/icc/cmyk.icc.h
source/fitz/icc/gray.icc.h
source/fitz/icc/lab.icc.h
source/fitz/icc/rgb.icc.h
source/pdf/js/util.js.h

index 63a5feb2ef40268324d866913dbb9ec5930cf471..7fa74b336f0ef26b9ba174024181b307f38eabbc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -196,7 +196,10 @@ generate: $(FONT_GEN)
 # --- Generated ICC profiles ---
 
 source/fitz/icc/%.icc.h: resources/icc/%.icc
-       $(QUIET_GEN) xxd -i $< | sed 's/unsigned/static const unsigned/' > $@
+       $(QUIET_GEN) xxd -i $< | \
+               sed 's/unsigned/static const unsigned/' | \
+               sed '1i// This is an automatically generated file. Do not edit.' \
+               > $@
 
 generate: source/fitz/icc/gray.icc.h
 generate: source/fitz/icc/rgb.icc.h
index 3032f8865b52fc6b2de4243dfabc5d8cd8ff2242..d649d98d1c420a2f7919447df2d4e46114a27864 100644 (file)
@@ -1,3 +1,4 @@
+1i// This is an automatically generated file. Do not edit.
 s!//.*!!
 s/^[ \t]*//
 s/ *$//
index b24ede189ba4d91ab7874db5f9bb17232f452217..26c7e8537ce3ed3293fbbceef5e749952bd00190 100644 (file)
@@ -1,3 +1,4 @@
+// This is an automatically generated file. Do not edit.
 static const unsigned char resources_icc_cmyk_icc[] = {
   0x00, 0x02, 0xdc, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x02, 0x10, 0x00, 0x00,
   0x70, 0x72, 0x74, 0x72, 0x43, 0x4d, 0x59, 0x4b, 0x4c, 0x61, 0x62, 0x20,
index fe1a86beb81fd53dcf639339d1d9a065d2fe7e6f..3485dc7dd48c4d9444a8fb79d6d9a6e7b191a5af 100644 (file)
@@ -1,3 +1,4 @@
+// This is an automatically generated file. Do not edit.
 static const unsigned char resources_icc_gray_icc[] = {
   0x00, 0x00, 0x01, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x02, 0x10, 0x00, 0x00,
   0x6d, 0x6e, 0x74, 0x72, 0x47, 0x52, 0x41, 0x59, 0x58, 0x59, 0x5a, 0x20,
index 8c138bd829abda9aa484257fc95bb3fb22af13f3..56b3fae90ee7e5fe9bd1889ffb0e6c2f2886a192 100644 (file)
@@ -1,3 +1,4 @@
+// This is an automatically generated file. Do not edit.
 static const unsigned char resources_icc_lab_icc[] = {
   0x00, 0x00, 0x07, 0xb4, 0x61, 0x70, 0x70, 0x6c, 0x02, 0x10, 0x00, 0x00,
   0x73, 0x70, 0x61, 0x63, 0x4c, 0x61, 0x62, 0x20, 0x4c, 0x61, 0x62, 0x20,
index 53a8f885085e5e95522d7e8fae1d64609cbd841f..2bb576629d2143f450ee1fc74693335a05e3d840 100644 (file)
@@ -1,3 +1,4 @@
+// This is an automatically generated file. Do not edit.
 static const unsigned char resources_icc_rgb_icc[] = {
   0x00, 0x00, 0x0a, 0x10, 0x00, 0x00, 0x00, 0x00, 0x02, 0x10, 0x00, 0x00,
   0x6d, 0x6e, 0x74, 0x72, 0x52, 0x47, 0x42, 0x20, 0x58, 0x59, 0x5a, 0x20,
index 52859d68d9d3fa003639caa8b2da653d6de7a180..c8b04d94aa62a80a1a61e14da68a722b46eb038c 100644 (file)
@@ -1,3 +1,4 @@
+// This is an automatically generated file. Do not edit.
 "Error.prototype.toString = function() {\n"
 "if (this.stackTrace) return this.name + ': ' + this.message + this.stackTrace;\n"
 "return this.name + ': ' + this.message;\n"