Skip to content
Browse files

add lz4 source downloading in build_all.sh

  • Loading branch information...
1 parent ababe35 commit 1e788b3cc7a7e29c60a2f0768e1826b083e5d307 @komiya-atsushi committed
Showing with 10 additions and 1 deletion.
  1. +9 −0 build_all.sh
  2. +1 −1 ext/lz4ruby/extconf.rb
View
9 build_all.sh
@@ -1,5 +1,14 @@
#!/usr/bin/env bash
+LZ4_REV_NO=66
+URL=http://lz4.googlecode.com/svn-history/r${LZ4_REV_NO}/trunk
+
+# get lz4 sources from web
+rm ext/lz4ruby/lz4.c; wget -P ext/lz4ruby/ $URL/lz4.c
+rm ext/lz4ruby/lz4.h; wget -P ext/lz4ruby/ $URL/lz4.h
+rm ext/lz4ruby/lz4hc.c; wget -P ext/lz4ruby/ $URL/lz4hc.c
+rm ext/lz4ruby/lz4hc.h; wget -P ext/lz4ruby/ $URL/lz4hc.h
+
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
rm -rf tmp/*
View
2 ext/lz4ruby/extconf.rb
@@ -19,7 +19,7 @@ def download_from_web(file)
"lz4.h",
"lz4hc.c",
"lz4hc.h" ].each do |filename|
- exit if !download_from_web(filename)
+# exit if !download_from_web(filename)
end
$CFLAGS += " -Wall "

0 comments on commit 1e788b3

Please sign in to comment.
Something went wrong with that request. Please try again.