From 2f1ca3fd9dc34c0c7e1af53a1d40dd40adfc6283 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 18 Sep 2019 13:45:18 -0300 Subject: [PATCH] platform --- gemcompiler.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}