]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
In mksqlite3c.tcl, pass EXTRA_SRC files through verbatim instead of applying the...
authorstephan <stephan@noemail.net>
Sun, 3 Sep 2023 15:01:11 +0000 (15:01 +0000)
committerstephan <stephan@noemail.net>
Sun, 3 Sep 2023 15:01:11 +0000 (15:01 +0000)
FossilOrigin-Name: 44f3d7d054055fab4cca0ba753e75e237ca159ae868ffd1d13ed45a874a772f2

manifest
manifest.uuid
tool/mksqlite3c.tcl

index f2e0fcdcfc6e15d92f3257b441de5054484f91a8..2d41793356f4f87823f3e9f0e7d9fa85311bc0f5 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Also\sadd\ssupport\sfor\sEXTRA_SRC\sin\sthe\sMakefile\sfor\sMSVC.
-D 2023-09-02T21:55:10.922
+C In\smksqlite3c.tcl,\spass\sEXTRA_SRC\sfiles\sthrough\sverbatim\sinstead\sof\sapplying\sthe\spost-processing\sneeded\sfor\ssqlite's\sown\ssource\sfiles.
+D 2023-09-03T15:01:11.477
 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
 F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@@ -2048,7 +2048,7 @@ F tool/mkshellc.tcl b7adf08b82de60811d2cb6af05ff59fc17e5cd6f3e98743c14eaaa3f8971
 F tool/mksourceid.c 36aa8020014aed0836fd13c51d6dc9219b0df1761d6b5f58ff5b616211b079b9
 F tool/mkspeedsql.tcl a1a334d288f7adfe6e996f2e712becf076745c97
 F tool/mksqlite3c-noext.tcl 4f7cfef5152b0c91920355cbfc1d608a4ad242cb819f1aea07f6d0274f584a7f
-F tool/mksqlite3c.tcl 4f366e3d1ddb28996a6763c847fa62e1452bb11ca702841485df77823ec94ea4
+F tool/mksqlite3c.tcl 6d95b3317a7c51e76458c1d4b056b1791b4d9022570e2e23efbaf6a272b47de2
 F tool/mksqlite3h.tcl d391cff7cad0a372ee1406faee9ccc7dad9cb80a0c95cae0f73d10dd26e06762
 F tool/mksqlite3internalh.tcl eb994013e833359137eb53a55acdad0b5ae1049b
 F tool/mkvsix.tcl b9e0777a213c23156b6542842c238479e496ebf5
@@ -2115,8 +2115,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 934b84339860fa84a6faa3507bdd3cc58199e2636a394fc93176c80da0ba6f1c
-R c273c661c255a780f4edcaa61a31a00b
-U mistachkin
-Z 47e1eabb65e7f37ad8c0f6188be76f6d
+P bfc18ef4323cd73fc63cb93f18bdd9c3add41bea83c1cbc1c20de5c1e4296a60
+R 7d78e3217d362137366a609d99cdc8a6
+U stephan
+Z c9456c989544e03851e269725c9f500c
 # Remove this line to create a well-formed Fossil manifest.
index 9687ff42b97a33ab29f08fb27b66b762acb052d6..ed0de42d691f6f6862cd162b2661b91cbec0b1a1 100644 (file)
@@ -1 +1 @@
-bfc18ef4323cd73fc63cb93f18bdd9c3add41bea83c1cbc1c20de5c1e4296a60
\ No newline at end of file
+44f3d7d054055fab4cca0ba753e75e237ca159ae868ffd1d13ed45a874a772f2
\ No newline at end of file
index bdbc01e49684b2ff0e9f8798687956454b190966..0ed96d2032c7b51744fe3ac90970d91c9538fb50 100644 (file)
@@ -352,6 +352,21 @@ proc copy_file {filename} {
   section_comment "End of $tail"
 }
 
+# Read the source file named $filename and write it into the
+# sqlite3.c output file. The only transformation is the trimming
+# of EOL whitespace.
+#
+proc copy_file_verbatim {filename} {
+  global out
+  set in [open $filename r]
+  set tail [file tail $filename]
+  section_comment "Begin EXTRA_SRC file $tail"
+  while {![eof $in]} {
+    set line [string trimright [gets $in]]
+    puts $out $line
+  }
+  section_comment "End of EXTRA_SRC $tail"
+}
 
 # Process the source files.  Process files containing commonly
 # used subroutines first in order to help the compiler find
@@ -481,7 +496,7 @@ foreach file $flist {
   copy_file $srcdir/$file
 }
 foreach file $extrasrc {
-  copy_file $file
+  copy_file_verbatim $file
 }
 
 puts $out \