specs/baseline.rbspec
changeset 0 f46260ba26b1
child 9 34274130f57a
equal deleted inserted replaced
-1:000000000000 0:f46260ba26b1
       
     1 load 'baseline.deps.rake'
       
     2 
       
     3 project :'stx:repositories' do
       
     4 
       
     5   # Hack for core developers..."
       
     6   case USER
       
     7   when 'jv' # Jan Vrany
       
     8       user = 'vranyj1'
       
     9   when 'm' # Marcel Hlopko
       
    10       user = 'hlopkmar'
       
    11   when 'roztocidlo' # Jan Kurs HTPC
       
    12       user = 'kursjan'
       
    13   else
       
    14     user = USER
       
    15   end
       
    16 
       
    17   # Hack for JV :-)
       
    18 
       
    19   if USER == 'jv'
       
    20     swing_baseline_url = ":ext:vrany@dialin.exept.de/cvs/stx"
       
    21   else
       
    22     swing_baseline_url = ":ext:#{user}@swing.fit.cvut.cz/var/local/cvs"
       
    23   end
       
    24 
       
    25   repository :'swing:baseline' do
       
    26     type :cvs
       
    27     url swing_baseline_url
       
    28   end
       
    29 
       
    30   repository :'swing' do
       
    31     type :svn
       
    32     url "https://#{user}@swing.fit.cvut.cz/svn"
       
    33   end
       
    34 
       
    35   repository :'swing:hgsvn' do
       
    36     type :hgsvn
       
    37     url "https://#{user}@swing.fit.cvut.cz/svn"
       
    38   end
       
    39 
       
    40   repository :'swing:hg' do
       
    41     type :hg
       
    42     # url "https://#{user}@swing.fit.cvut.cz/hg"
       
    43     url "ssh://#{user}@swing.fit.cvut.cz//var/local/hg"
       
    44   end
       
    45 
       
    46   repository :'swing:private' do
       
    47     type :svn
       
    48     url "svn+ssh://#{user}@192.168.12.2/svn"
       
    49   end
       
    50 
       
    51   repository :'swing:private:hg' do
       
    52     type :hg
       
    53     url "ssh://#{user}@192.168.12.2//hg"
       
    54   end
       
    55 
       
    56   repository :'swing:private:cvs' do
       
    57     type :cvs
       
    58     url ":ext:#{user}@192.168.12.2/cvs"
       
    59   end
       
    60 
       
    61   repository :'bitbucket:janvrany' do
       
    62     type :hg
       
    63     url "https://bitbucket.org/janvrany"
       
    64     separator '-'
       
    65   end
       
    66 end
       
    67 
       
    68 project :'stx:baseline' do
       
    69 
       
    70   import :'stx:repositories'
       
    71 
       
    72   repository :'swing:baseline'
       
    73   package "stx:libbasic"
       
    74   package "stx:goodies/refactoryBrowser/helpers"
       
    75   package "stx:goodies/refactoryBrowser/parser"
       
    76   package "stx:libbasic2"
       
    77   package "stx:libcomp"
       
    78   package "stx:libcompat"
       
    79   package "stx:libview"
       
    80   package "stx:libbasic3"
       
    81   package "stx:libdb"
       
    82   package "stx:libdb/libodbc"
       
    83   package "stx:libdb/libsqlite"
       
    84   package "stx:libview2"
       
    85   package "stx:libboss"
       
    86   package "stx:goodies/refactoryBrowser/changes"
       
    87   package "stx:libwidg"
       
    88   package "stx:libhtml"
       
    89   package "stx:libwidg2"
       
    90   package "stx:libui"
       
    91   package "stx:libview3"
       
    92   package "stx:libwidg3"
       
    93   package "stx:libtool"
       
    94   package "stx:libjavascript"
       
    95   package "stx:goodies/refactoryBrowser/refactoring"
       
    96   package "stx:goodies/refactoryBrowser/lint"
       
    97   package "stx:goodies/refactoryBrowser/browser"
       
    98   package "stx:libtool2"
       
    99   package "stx:goodies/libdbase" if not win32?
       
   100 
       
   101   application 'stx:projects/smalltalk'
       
   102 
       
   103   tasks do
       
   104 
       
   105     task :'checkout:buildtools' => [ BUILD_DIR / 'stx' / "rules",
       
   106 				     BUILD_DIR / 'stx' / "configurations",
       
   107 				     BUILD_DIR / 'stx' / "support",
       
   108 				     BUILD_DIR / 'stx' / "stc",
       
   109 				     BUILD_DIR / 'stx' / "librun",
       
   110 				     BUILD_DIR / 'stx' / "RELEASE",
       
   111 				     # needed by applications for *.rc stuff
       
   112                                      BUILD_DIR / 'stx' / 'projects' / 'smalltalk',
       
   113                                      # documentation
       
   114                                      BUILD_DIR / 'stx' / 'doc' / 'online' / 'english',
       
   115                                      BUILD_DIR / 'stx' / 'doc' / 'online' / 'pictures',
       
   116                                      BUILD_DIR / 'stx' / 'doc' / 'online' / 'icons',
       
   117                                      # various icons (country flags etc)
       
   118                                      BUILD_DIR / 'stx' / 'goodies' / 'bitmaps'
       
   119 				   ]
       
   120 
       
   121     file BUILD_DIR / 'stx' / 'rules'  => BUILD_DIR do | t |
       
   122       checkout :'swing:baseline', 'stx/rules'
       
   123       # the clear is here to avoid multiple checkouts
       
   124       t.clear()
       
   125     end
       
   126 
       
   127     file BUILD_DIR / 'stx' / 'RELEASE'  => BUILD_DIR do | t |
       
   128       checkout :'swing:baseline', 'stx/RELEASE'
       
   129       # the clear is here to avoid multiple checkouts
       
   130       t.clear()
       
   131     end
       
   132 
       
   133     file BUILD_DIR / 'stx' / 'configurations' => BUILD_DIR do | t |
       
   134       checkout :'swing:baseline', 'stx/configurations'
       
   135       # the clear is here to avoid multiple checkouts
       
   136       t.clear()
       
   137     end
       
   138 
       
   139     file BUILD_DIR / 'stx' / 'doc' / 'online' / 'english'  => BUILD_DIR do | t |
       
   140       checkout :'swing:baseline', 'stx/doc/online/english'
       
   141       # the clear is here to avoid multiple checkouts
       
   142       t.clear()
       
   143     end
       
   144 
       
   145     file BUILD_DIR / 'stx' / 'doc' / 'online' / 'pictures'  => BUILD_DIR do | t |
       
   146       checkout :'swing:baseline', 'stx/doc/online/pictures'
       
   147       # the clear is here to avoid multiple checkouts
       
   148       t.clear()
       
   149     end
       
   150 
       
   151     file BUILD_DIR / 'stx' / 'doc' / 'online' / 'icons'  => BUILD_DIR do | t |
       
   152       checkout :'swing:baseline', 'stx/doc/online/icons'
       
   153       # the clear is here to avoid multiple checkouts
       
   154       t.clear()
       
   155     end
       
   156 
       
   157     file BUILD_DIR / 'stx' / 'goodies' / 'bitmaps'   => BUILD_DIR do | t |
       
   158       checkout :'swing:baseline', 'stx/goodies/bitmaps'
       
   159       # the clear is here to avoid multiple checkouts
       
   160       t.clear()
       
   161     end
       
   162 
       
   163     file BUILD_DIR / 'stx' / 'support' => BUILD_DIR do | t |
       
   164       checkout :'swing:baseline', 'stx/support'
       
   165       # the clear is here to avoid multiple checkouts
       
   166       t.clear()
       
   167     end
       
   168 
       
   169     file BUILD_DIR / 'stx' / 'stc' => BUILD_DIR do | t |
       
   170       checkout :'swing:private', 'stx/stc'
       
   171       # the clear is here to avoid multiple checkouts
       
   172       t.clear()
       
   173     end
       
   174 
       
   175     file BUILD_DIR / 'stx' / 'librun' => BUILD_DIR do | t |
       
   176       checkout :'swing:private', 'stx/librun'
       
   177       # the clear is here to avoid multiple checkouts
       
   178       t.clear()
       
   179     end
       
   180 
       
   181     file BUILD_DIR / 'stx' / 'projects' / 'smalltalk' do | t |
       
   182       app = project.application
       
   183       repo = :'swing:baseline'
       
   184       branch = nil
       
   185       if (app.name == 'stx:projects/smalltalk' ) 
       
   186       	repo = app.repository
       
   187       	branch = app.branch
       
   188       end
       
   189       checkout repo, 'stx/projects/smalltalk', :branch => branch
       
   190       # the clear is here to avoid multiple checkouts
       
   191       t.clear()
       
   192     end
       
   193 
       
   194   end
       
   195 
       
   196 end
       
   197