diff --git a/gemcompiler.sh b/gemcompiler.sh index 8f3f5a9..243764a 100644 --- a/gemcompiler.sh +++ b/gemcompiler.sh @@ -1,6 +1,7 @@ #!/bin/sh export PATH=usr/lib/ccache/bin:$PATH +PLATFORM=`ruby -e "puts RbConfig::CONFIG['arch']"` cd /srv/gems @@ -8,8 +9,8 @@ test -f ${GEM}-${VERSION}.gem \ || gem fetch --source=https://rubygems.org --platform=ruby \ --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 inabox ${GEM}-${VERSION}-`uname -m`-linux.gem \ +gem inabox ${GEM}-${VERSION}-${PLATFORM}.gem \ --host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@gems.${SUTTY}