Fossil SCM

Make sure the MSVC makefile is only used from within the directory where it resides.

mistachkin 2014-09-29 15:37 trunk
Commit 86de8cbeb505eda64453138fdf6876f9cff520ba
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -1145,10 +1145,19 @@
11451145
11461146
writeln {#
11471147
##############################################################################
11481148
# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
11491149
##############################################################################
1150
+#
1151
+# This Makefile will only function correctly if used from the directory it
1152
+# is contained in. Therefore, attempt to detect when that is not the case
1153
+# and issue an error message.
1154
+#
1155
+!if !exist("Makefile.msc")
1156
+!error "Please change the current directory to the one containing this file."
1157
+!endif
1158
+
11501159
#
11511160
# This file is automatically generated. Instead of editing this
11521161
# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
11531162
# to regenerate this file.
11541163
#
11551164
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -1145,10 +1145,19 @@
1145
1146 writeln {#
1147 ##############################################################################
1148 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
1149 ##############################################################################
 
 
 
 
 
 
 
 
 
1150 #
1151 # This file is automatically generated. Instead of editing this
1152 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
1153 # to regenerate this file.
1154 #
1155
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -1145,10 +1145,19 @@
1145
1146 writeln {#
1147 ##############################################################################
1148 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
1149 ##############################################################################
1150 #
1151 # This Makefile will only function correctly if used from the directory it
1152 # is contained in. Therefore, attempt to detect when that is not the case
1153 # and issue an error message.
1154 #
1155 !if !exist("Makefile.msc")
1156 !error "Please change the current directory to the one containing this file."
1157 !endif
1158
1159 #
1160 # This file is automatically generated. Instead of editing this
1161 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
1162 # to regenerate this file.
1163 #
1164
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -1,9 +1,18 @@
11
#
22
##############################################################################
33
# WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
44
##############################################################################
5
+#
6
+# This Makefile will only function correctly if used from the directory it
7
+# is contained in. Therefore, attempt to detect when that is not the case
8
+# and issue an error message.
9
+#
10
+!if !exist("Makefile.msc")
11
+!error "Please change the current directory to the one containing this file."
12
+!endif
13
+
514
#
615
# This file is automatically generated. Instead of editing this
716
# file, edit "makemake.tcl" then run "tclsh makemake.tcl"
817
# to regenerate this file.
918
#
1019
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -1,9 +1,18 @@
1 #
2 ##############################################################################
3 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4 ##############################################################################
 
 
 
 
 
 
 
 
 
5 #
6 # This file is automatically generated. Instead of editing this
7 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
8 # to regenerate this file.
9 #
10
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -1,9 +1,18 @@
1 #
2 ##############################################################################
3 # WARNING: DO NOT EDIT, AUTOMATICALLY GENERATED FILE (SEE "src/makemake.tcl")
4 ##############################################################################
5 #
6 # This Makefile will only function correctly if used from the directory it
7 # is contained in. Therefore, attempt to detect when that is not the case
8 # and issue an error message.
9 #
10 !if !exist("Makefile.msc")
11 !error "Please change the current directory to the one containing this file."
12 !endif
13
14 #
15 # This file is automatically generated. Instead of editing this
16 # file, edit "makemake.tcl" then run "tclsh makemake.tcl"
17 # to regenerate this file.
18 #
19

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button