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.
On 6/20/07, barsalou <barjunk at attglobal.net> wrote:> 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 rspecThis works only for the pre-release versions that were not distributed publicly. How about getting rid of all the pre-release stuff and parameterizing the version? Otherwise - thanks!> > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
I''ll redo it in ruby and post that. Mike B. Quoting David Chelimsky <dchelimsky at gmail.com>:> On 6/20/07, barsalou <barjunk at attglobal.net> wrote: >> 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 works only for the pre-release versions that were not > distributed publicly. > > How about getting rid of all the pre-release stuff and parameterizing > the version? > > Otherwise - thanks! > >> >> >> ---------------------------------------------------------------- >> This message was sent using IMP, the Internet Messaging Program. >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.