Cleanup: Cleaned up command executing code in `rakelib\scm.rb`.
Use `sh` (from `RakeFileUtils`) execute external commands to avoid
code duplication. Improved `sh` to allow reading command's output and
read it's status.
# This file defines a set of repositories to fetch source code from.
#
#
# Following repository sets are defined here:
#
# 1.*default*: fetches source from public repositories. Code forked
# by Smalltalk/X jv-branch is loaded from Jan Vrany's BitBucket
# account (https://bitbucket.org/janvrany/), the rest is loaded
# from eXept's public CVS repository (:pserver:cvs@cvs.smalltalk-x.de:/cvs/stx)
# Sources of stc and librun (Smalltalk/X VM) are not checked out
# (since they're not freely available) but pre-build binaries are
# downloaded from SWING CI server ( https://swing.fit.cvut.cz/jenkins/job/stx_jv/ )
#
# This is the default if no REPOSITORYSET value is set.
#
#
# 2.*ci-swing*: for use on SWING CI [1]. Uses local mirrors.
#
# 3."ci-jv": for use on Jan Vrany's private CI. Uses local mirrors.
#
#
REPOSITORYSET = (ENV['REPOSITORYSET'] || 'default') if not defined? REPOSITORYSET
case REPOSITORYSET
when 'default'
repository :'exept:public' do
type :cvs
url ":pserver:cvs@cvs.smalltalk-x.de:/cvs/stx"
end
repository :'bitbucket:janvrany' do
type :hg
url "https://bitbucket.org/janvrany"
separator '-'
end
if core_developer?
repository :'swing:private:hg' do
type :hg
url "ssh://192.168.12.2//hg"
separator '.'
end
end
when 'ci-swing'
repository :'exept:public' do
type :cvs
url ":ext:swing.fit.cvut.cz/var/local/cvs"
end
repository :'bitbucket:janvrany' do
type :hg
url "https://bitbucket.org/janvrany"
mirror "ssh://swing.fit.cvut.cz//var/local/hg"
separator '-'
end
repository :'swing:private:hg' do
type :hg
url "ssh://192.168.12.2//hg"
separator '.'
end
when 'ci-jv'
repository :'exept:public' do
type :cvs
url ":pserver:cvs@cvs.smalltalk-x.de:/cvs/stx"
end
repository :'bitbucket:janvrany' do
type :hg
url "ssh://hg@192.168.0.250"
separator '-'
end
repository :'swing:private:hg' do
type :hg
url "ssh://hg@192.168.0.250"
separator '-'
end
end
#
#