sztupy-shaml 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/shaml.rb +10 -4
- metadata +1 -1
data/lib/shaml.rb
CHANGED
@@ -156,13 +156,19 @@ else
|
|
156
156
|
when "compile"
|
157
157
|
appname = getappname
|
158
158
|
puts "Copying libraries"
|
159
|
-
|
160
|
-
|
159
|
+
begin
|
160
|
+
FileUtils.rm_r(File.join(appname,"bin"))
|
161
|
+
rescue Exception => e
|
162
|
+
end
|
163
|
+
begin
|
164
|
+
FileUtils.rm_r(File.join(appname+".Tests","bin"))
|
165
|
+
rescue Exception => e
|
166
|
+
end
|
161
167
|
FileUtils.cp_r("libraries",File.join(appname,"bin"))
|
162
168
|
FileUtils.cp_r("libraries",File.join(appname+".Tests","bin"))
|
163
169
|
puts "Compiling using gmcs"
|
164
|
-
system("gmcs -recurse:#{File.join(appname,"*.cs")} `ls libraries/*.dll | sed \"s
|
165
|
-
system("gmcs -recurse:#{File.join(appname+".Tests","*.cs")} `ls libraries/*.dll | sed \"s
|
170
|
+
system("gmcs -recurse:#{File.join(appname,"*.cs")} `ls libraries/*.dll | sed \"s/libr/-r:libr/\"` -r:System.Web.Routing -r:System.Web -t:library -out:#{File.join(appname,"bin",appname+".dll")}")
|
171
|
+
system("gmcs -recurse:#{File.join(appname+".Tests","*.cs")} `ls libraries/*.dll | sed \"s/libr/-r:libr/\"` -r:System.Web.Routing -r:System.Web -t:library -out:#{File.join(appname+".Tests","bin",appname+".dll")}")
|
166
172
|
when "server"
|
167
173
|
puts "Starting xsp2"
|
168
174
|
appname = getappname
|