ADD Images
[pompage.git] / mise_en_prod.rb
index 8830586..cda6118 100644 (file)
@@ -1,12 +1,12 @@
-if $*.length < 1\r
-   puts 'Usage: mise_en_prod.rb destination'\r
-   exit 1\r
-end\r
+dest = "Z:\\var\\www\\divx"\r
 \r
-dest = $*[0]\r
+#if $*.length < 1\r
+#   puts 'Usage: mise_en_prod.rb destination'\r
+#   exit 1\r
+#end\r
 \r
-# pour windows\r
-['xml', 'xsl', 'js', 'css'].each{|rep|\r
-   `mkdir #{dest}\\#{rep}`\r
-   `xcopy /Y #{rep} #{dest}\\#{rep}`\r
-}
\ No newline at end of file
+dest = $*[0] if $*.length > 1\r
+\r
+['xml', 'xsl', 'js', 'css', 'img', 'xpi'].each{|rep|\r
+   `cp -Ru #{rep} #{dest}`\r
+}\r