-C Replace\sa\sfew\ssqlite3_malloc()+memset()\ssequences\swith\scalls\sto\ssqlite3MallocZero().
-D 2012-07-30T14:53:54.464
+C Modify\smetadata\sfor\sthe\sVSIX\spackage\sand\sadd\stooling\ssupport\sfor\sPDBs.
+D 2012-07-31T00:43:31.954
F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
F Makefile.in abd5c10d21d1395f140d9e50ea999df8fa4d6376
F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
F test/win32lock.test b2a539e85ae6b2d78475e016a9636b4451dc7fb9
F test/zeroblob.test caaecfb4f908f7bc086ed238668049f96774d688
F test/zerodamage.test 0de750389990b1078bab203c712dc3fefd1d8b82
-F tool/build-all-msvc.bat f8e272fc74c48e7697f4744aacce1ee4df5edb20 x
+F tool/build-all-msvc.bat 1a18aa39983ae7354d834bc55a850a54fc007576 x
F tool/build-shell.sh b64a481901fc9ffe5ca8812a2a9255b6cfb77381
F tool/diffdb.c 7524b1b5df217c20cd0431f6789851a4e0cb191b
F tool/extract.c 054069d81b095fbdc189a6f5d4466e40380505e2
F tool/mksqlite3c.tcl 589c7f44e990be1b8443cfe4808dce392b0327fa
F tool/mksqlite3h.tcl 78013ad79a5e492e5f764f3c7a8ef834255061f8
F tool/mksqlite3internalh.tcl 3dca7bb5374cee003379b8cbac73714f610ef795
-F tool/mkvsix.tcl 75fb1b601d69ead76340fa15bf9813874fed240b
+F tool/mkvsix.tcl ce2ad5da880752426e2597382f3bf1279d5646b3
F tool/offsets.c fe4262fdfa378e8f5499a42136d17bf3b98f6091
F tool/omittest.tcl 4665982e95a6e5c1bd806cf7bc3dea95be422d77
F tool/opcodeDoc.awk b3a2a3d5d3075b8bd90b7afe24283efdd586659c
F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
-F tool/win/sqlite.vsix 84163b633f01f35cb47495c05dd2b640159677ff
-P e71f2de2cc7c4ef5ee31da81b6615886f6e601e7
-R a7495b0145c88ec6647f7c425289b3e1
-U dan
-Z 82b9855bd1443e957263d9bd8f18cf53
+F tool/win/sqlite.vsix a8778c835bbfe8d9d2066c144542c245a29ac525
+P 305b6667265353b858b79bfea1745e64ff3bb7d3
+R bd2d8408dc9dbcc7a27c7ffc1e947c79
+U mistachkin
+Z 91e5f70404ea58b1f716b323c3d5addd
###############################################################################
+#
+# NOTE: Evaluate the user-specific customizations file, if it exists.
+#
+set userFile [file join $path [appendArgs \
+ $rootName . $tcl_platform(user) .tcl]]
+
+if {[file exists $userFile] && \
+ [file isfile $userFile]} then {
+ source $userFile
+}
+
+###############################################################################
+
set templateFile [file join $path win sqlite.vsix]
if {![file exists $templateFile] || \
# in the source directory. This script assumes that the header file has
# already been generated by the build process.
#
-set pattern {^#define\s+?SQLITE_VERSION\s+?"(.*?)"$}
+set pattern {^#define\s+SQLITE_VERSION\s+"(.*)"$}
set data [readFile [file join $sourceDirectory sqlite3.h]]
if {![regexp -line -- $pattern $data dummy version]} then {
#
# NOTE: Setup the master file list data, including the necessary flags.
#
-set fileNames(source) [list "" "" "" \
- [file join $sourceDirectory sqlite3.h] \
- [file join $binaryDirectory <platform> sqlite3.lib] \
- [file join $binaryDirectory <platform> sqlite3.dll]]
-
-set fileNames(destination) [list \
- [file join $stagingDirectory extension.vsixmanifest] \
- [file join $stagingDirectory SDKManifest.xml] \
- [file join $stagingDirectory DesignTime CommonConfiguration \
- <platform> SQLite.WinRT.props] \
- [file join $stagingDirectory DesignTime CommonConfiguration \
- <platform> sqlite3.h] \
- [file join $stagingDirectory DesignTime CommonConfiguration \
- <platform> sqlite3.lib] \
- [file join $stagingDirectory Redist CommonConfiguration \
- <platform> sqlite3.dll]]
-
-set fileNames(neutral) [list 1 1 1 1 0 0]
-set fileNames(subst) [list 1 1 1 0 0 0]
+if {![info exists fileNames(source)]} then {
+ set fileNames(source) [list "" "" "" \
+ [file join $sourceDirectory sqlite3.h] \
+ [file join $binaryDirectory <platform> sqlite3.lib] \
+ [file join $binaryDirectory <platform> sqlite3.dll]]
+
+ if {![info exists no(symbols)]} then {
+ lappend fileNames(source) \
+ [file join $binaryDirectory <platform> sqlite3.pdb]
+ }
+}
+
+if {![info exists fileNames(destination)]} then {
+ set fileNames(destination) [list \
+ [file join $stagingDirectory extension.vsixmanifest] \
+ [file join $stagingDirectory SDKManifest.xml] \
+ [file join $stagingDirectory DesignTime CommonConfiguration \
+ <platform> SQLite.WinRT.props] \
+ [file join $stagingDirectory DesignTime CommonConfiguration \
+ <platform> sqlite3.h] \
+ [file join $stagingDirectory DesignTime CommonConfiguration \
+ <platform> sqlite3.lib] \
+ [file join $stagingDirectory Redist CommonConfiguration \
+ <platform> sqlite3.dll]]
+
+ if {![info exists no(symbols)]} then {
+ lappend fileNames(destination) \
+ [file join $stagingDirectory Redist CommonConfiguration \
+ <platform> sqlite3.pdb]
+ }
+}
+
+if {![info exists fileNames(neutral)]} then {
+ set fileNames(neutral) [list 1 1 1 1 0 0]
+
+ if {![info exists no(symbols)]} then {
+ lappend fileNames(neutral) 0
+ }
+}
+
+if {![info exists fileNames(subst)]} then {
+ set fileNames(subst) [list 1 1 1 0 0 0]
+
+ if {![info exists no(symbols)]} then {
+ lappend fileNames(subst) 0
+ }
+}
###############################################################################
#
# NOTE: Setup the list of platforms supported by this script.
#
-set platformNames [list ARM x64 x86]
+if {![info exists platformNames]} then {
+ set platformNames [list ARM x64 x86]
+}
###############################################################################
# platform will be processed for it individually.
#
foreach platformName [expr {$isNeutral ? [list neutral] : $platformNames}] {
+ #
+ # NOTE: Use the actual platform name in the destination file name.
+ #
+ set newDestinationFileName [replacePlatform $destinationFileName \
+ $platformName]
+
#
# NOTE: Does the source file need to be copied to the destination file?
#
if {[string length $sourceFileName] > 0} then {
#
- # NOTE: Copy the source file to the destination file verbatim.
+ # NOTE: First, make sure the destination directory exists.
+ #
+ file mkdir [file dirname $newDestinationFileName]
+
+ #
+ # NOTE: Then, copy the source file to the destination file verbatim.
#
file copy [replacePlatform $sourceFileName $platformName] \
- [replacePlatform $destinationFileName $platformName]
+ $newDestinationFileName
}
#
# NOTE: Perform any dynamic replacements contained in the destination
# file and then re-write it in-place.
#
- substFile [replacePlatform $destinationFileName $platformName]
+ substFile $newDestinationFileName
}
}
}