summaryrefslogtreecommitdiffstats
path: root/PCbuild/vs9to8.py
diff options
context:
space:
mode:
Diffstat (limited to 'PCbuild/vs9to8.py')
-rw-r--r--PCbuild/vs9to8.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/PCbuild/vs9to8.py b/PCbuild/vs9to8.py
index b31ed61..c59dea4 100644
--- a/PCbuild/vs9to8.py
+++ b/PCbuild/vs9to8.py
@@ -22,6 +22,12 @@ def vs9to8(src, dest):
lines = lines.replace('..\\', '..\\..\\')
lines = lines.replace('..\\..\\..\\..\\', '..\\..\\..\\')
+ # Bah. VS8.0 does not expand macros in file names.
+ # Replace them here.
+ lines = lines.replace('$(sqlite3Dir)', '..\\..\\..\\sqlite-source-3.3.4')
+ lines = lines.replace('$(bsddbDir)\\..\\..', '..\\..\\..\\db-4.4.20\\build_win32\\..')
+ lines = lines.replace('$(bsddbDir)', '..\\..\\..\\db-4.4.20\\build_win32')
+
with open(destname, 'wb') as fout:
lines = lines.replace("\n", "\r\n")
fout.write(lines)