[rspec-users] Rspec for the svn-less

barsalou barjunk at attglobal.net
Wed Jun 20 18:27:17 EDT 2007


Here is a short bash script I wrote to install rspec if your just using 
the tarballs like me.  I probably should have written it in ruby, but 
there it is:

#!/bin/bash

RSPEC=rspec-1.0.4-pre-release.tgz
RSPECRAILS=rspec_on_rails-1.0.4-pre-release.tgz
[ -z "$1" ] && {
echo
echo "You must include a pathname"
echo
exit 1
}

if [ -d $1/vendor/plugins ]; then
    cd $1/vendor/plugins
else
    echo "path: $1/vendor/plugins doesn't exist"
    exit 1
fi
tar zxvf $RSPEC
tar zxvf $RSPECRAILS
mv `basename $RSPEC -pre-release.tgz` rspec
mv `basename $RSPECRAILS -pre-release.tgz` rspec_on_rails

cd ../../
script/generate rspec


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the rspec-users mailing list