Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add install svn #217

Merged
merged 4 commits into from

2 participants

@hsbt
Collaborator

http://github.com/ruby/ruby is stopped now.
I added install_svn function and switched some build to svn.ruby-lang.org.

bin/ruby-build
@@ -159,6 +163,21 @@ fetch_git() {
fi
}
+fetch_svn() {
+ local package_name="$1"
+ local svn_url="$2"
+ local svn_rev="$3"
+
+ echo "Checkout ${svn_url}..." >&2
@jeremy Collaborator
jeremy added a note

Checkout -> Checking out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
bin/ruby-build
@@ -96,6 +96,10 @@ install_git() {
install_package_using "git" 2 $*
}
+install_svn() {
+ install_package_using "svn" 2 $*
@jeremy Collaborator
jeremy added a note

2-space indent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@jeremy
Collaborator

Thank you @hsbt. I made a couple comments on small cosmetic changes.

I hope the svn -> git mirror will resume soon!

@hsbt
Collaborator

@jeremy Thanks for your review, I code it.

I hope too.

@jeremy jeremy merged commit 16e81d2 into sstephenson:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 6, 2012
  1. @hsbt

    added build function using svn

    hsbt authored
  2. @hsbt

    switch svn in ruby-head build

    hsbt authored
  3. @hsbt

    switch svn

    hsbt authored
  4. @hsbt

    reviewed

    hsbt authored
This page is out of date. Refresh to see the latest.
View
19 bin/ruby-build
@@ -96,6 +96,10 @@ install_git() {
install_package_using "git" 2 $*
}
+install_svn() {
+ install_package_using "svn" 2 $*
+}
+
install_package_using() {
local package_type="$1"
local package_type_nargs="$2"
@@ -159,6 +163,21 @@ fetch_git() {
fi
}
+fetch_svn() {
+ local package_name="$1"
+ local svn_url="$2"
+ local svn_rev="$3"
+
+ echo "Checking out ${svn_url}..." >&2
+
+ if type svn &>/dev/null; then
+ svn co -r "$svn_rev" "$svn_url" "${package_name}" >&4 2>&1
+ else
+ echo "error: please install \`svn\` and try again" >&2
+ exit 1
+ fi
+}
+
build_package() {
local package_name="$1"
shift
View
2  share/ruby-build/1.9.3-dev
@@ -1,2 +1,2 @@
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
-install_git "ruby-1.9.3-dev" "https://github.com/ruby/ruby.git" "ruby_1_9_3" autoconf standard
+install_svn "ruby-1.9.3-dev" "http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_3" "HEAD" autoconf standard
View
2  share/ruby-build/2.0.0-dev
@@ -1,2 +1,2 @@
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
-install_git "ruby-2.0.0-dev" "https://github.com/ruby/ruby.git" "trunk" autoconf standard
+install_svn "ruby-2.0.0-dev" "http://svn.ruby-lang.org/repos/ruby/trunk" "HEAD" autoconf standard
Something went wrong with that request. Please try again.