#!/bin/sh

. ./_blfsset.sh

APPNAME=rails
gem search -r $APPNAME | grep "^${APPNAME} " > tmp.txt
VER=`sed -e "s/^${APPNAME} (\([0-9]*\.[0-9]*\.[0-9]*\)).*/\1/" tmp.txt`
TARGET=$APPNAME-$VER
rm -f tmp.txt

echo $TARGET

. $WRK/_checkRequired.sh \
	ruby
. $WRK/_checkOptions.sh  ""
. $WRK/_checkExit.sh "$1" || exit $?

cd $SRC

TimeStart

Installing
porg -lp $TARGET "\
gem install ${APPNAME} --no-ri --no-rdoc" \
	1> $LOG/$TARGET.3_install.log 2>&1 || exit 1

TimeEnd

PorgingDone

