platform
This commit is contained in:
parent
60a18cf555
commit
2f1ca3fd9d
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export PATH=usr/lib/ccache/bin:$PATH
|
export PATH=usr/lib/ccache/bin:$PATH
|
||||||
|
PLATFORM=`ruby -e "puts RbConfig::CONFIG['arch']"`
|
||||||
|
|
||||||
cd /srv/gems
|
cd /srv/gems
|
||||||
|
|
||||||
|
@ -8,8 +9,8 @@ test -f ${GEM}-${VERSION}.gem \
|
||||||
|| gem fetch --source=https://rubygems.org --platform=ruby \
|
|| gem fetch --source=https://rubygems.org --platform=ruby \
|
||||||
--version ${VERSION} ${GEM}
|
--version ${VERSION} ${GEM}
|
||||||
|
|
||||||
test -f ${GEM}-${VERSION}-`uname -m`-linux.gem \
|
test -f ${GEM}-${VERSION}-${PLATFORM}.gem \
|
||||||
|| gem compile -V --prune ${GEM}-${VERSION}.gem
|
|| gem compile -V --prune ${GEM}-${VERSION}.gem
|
||||||
|
|
||||||
gem inabox ${GEM}-${VERSION}-`uname -m`-linux.gem \
|
gem inabox ${GEM}-${VERSION}-${PLATFORM}.gem \
|
||||||
--host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@gems.${SUTTY}
|
--host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@gems.${SUTTY}
|
||||||
|
|
Loading…
Reference in a new issue