sztupy-shaml 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shaml.rb +7 -4
- metadata +1 -1
data/lib/shaml.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'zip/zip'
|
3
3
|
|
4
|
-
SHAML_VERSION="0.1.
|
4
|
+
SHAML_VERSION="0.1.6"
|
5
5
|
|
6
6
|
TEMPLATEDIR = File.join(File.dirname(__FILE__),"templates")
|
7
7
|
|
@@ -154,10 +154,13 @@ else
|
|
154
154
|
puts 'S#aml ERROR: no name specified'
|
155
155
|
end
|
156
156
|
when "compile"
|
157
|
-
puts "Compiling using gmcs"
|
158
157
|
appname = getappname
|
159
|
-
|
160
|
-
FileUtils.
|
158
|
+
puts "Copying libraries"
|
159
|
+
FileUtils.rm_r(File.join(appname,"bin"))
|
160
|
+
FileUtils.rm_r(File.join(appname+".Tests","bin"))
|
161
|
+
FileUtils.cp_r("libraries",File.join(appname,"bin"))
|
162
|
+
FileUtils.cp_r("libraries",File.join(appname+".Tests","bin"))
|
163
|
+
puts "Compiling using gmcs"
|
161
164
|
system("gmcs -recurse:#{File.join(appname,"*.cs")} `ls libraries/*.dll | sed \"s/../-r:../\"` -r:System.Web.Routing -r:System.Web -t:library -out:#{File.join(appname,"bin",appname+".dll")}")
|
162
165
|
system("gmcs -recurse:#{File.join(appname+".Tests","*.cs")} `ls libraries/*.dll | sed \"s/../-r:../\"` -r:System.Web.Routing -r:System.Web -t:library -out:#{File.join(appname+".Tests","bin",appname+".dll")}")
|
163
166
|
when "server"
|