specs/stx-jv.rbspec
branchstx-8.0.0
changeset 212 6899f0183a0d
parent 209 731d5bf792bb
child 213 58e61f63be9c
--- a/specs/stx-jv.rbspec	Fri Dec 29 20:32:10 2017 +0000
+++ b/specs/stx-jv.rbspec	Tue Jan 02 10:25:15 2018 +0000
@@ -207,6 +207,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'