specs/stx-jv.rbspec
changeset 155 31e32b21a711
parent 152 22e0e7bc6180
child 236 5a4e789cdd40
--- a/specs/stx-jv.rbspec	Mon Dec 18 22:08:00 2017 +0000
+++ b/specs/stx-jv.rbspec	Tue Jan 02 10:25:15 2018 +0000
@@ -239,6 +239,44 @@
       checkout(:'exept:public', 'stx/goodies/CharacterEncoderCodeGenerator.st')
     end
 
+    # Checkout & install demos. Too bad that demos are not in a package itself but
+    # rather a set of scaterred files here and there. So we have to checkout
+    # and install them manually
+    task 'checkout:post' => 'checkout:demos'
+    task 'checkout:demos' => [ BUILD_DIR / 'stx' / 'doc' / 'coding' ,
+                               BUILD_DIR / 'stx' / 'goodies'  / 'demos' ,
+                               BUILD_DIR / 'stx' / 'clients' ]
+    file BUILD_DIR / 'stx' / 'doc' / 'coding' do
+      checkout(:'exept:public', 'stx/doc/coding')
+    end
+    file BUILD_DIR / 'stx' / 'goodies'  / 'demos' do
+      checkout(:'exept:public', 'stx/goodies/demos')
+    end
+    file BUILD_DIR / 'stx' / 'clients' do
+      checkout(:'exept:public', 'stx/clients')
+    end
+
+    task 'dist:jv:post' => 'dist:jv:demos'
+    task 'dist:jv:demos' do
+      cp_rx BUILD_DIR / 'stx' / 'doc' / 'coding', $install_jv_dirs[:pkg_dir] / 'stx' / 'doc' do |fname|
+        # fname is full path!!!
+        /\.svn|CVS|\.cvsignore|tests/.match(fname).nil?
+      end
+
+      cp_rx BUILD_DIR / 'stx' / 'goodies' / 'demos', $install_jv_dirs[:pkg_dir] / 'stx' / 'goodies'  do |fname|
+        # fname is full path!!!
+        /\.svn|CVS|\.cvsignore|tests/.match(fname).nil?
+      end
+
+      cp_rx BUILD_DIR / 'stx' / 'clients', $install_jv_dirs[:pkg_dir] / 'stx' do |fname|
+        # fname is full path!!!
+        /\.svn|CVS|\.cvsignore|tests/.match(fname).nil?
+      end
+    end
+
+
+
+
     task :'install:main' => :'dist:jv-branch'
 
     task :'dist:jv:pre' => :'stx:jv-branch:extractver'