View Single Post
  #1 (permalink)  
Old January 20th, 2004
graywind graywind is offline
Novicius
 
Join Date: January 20th, 2004
Location: Fife
Posts: 1
graywind is flying high
Default Unofficial CVS update-compile script for Linux

I wrote a few scripts that I thought might be useful to all the other people out there that use Linux, but are lazy like me, and hate typing all the commands to download from the CVS, and then compile it.

Here are the three files and what they do.

makedirs-limewire.sh

Quote:
#!/bin/sh
#LimeWire CVS build execution script
choice=" "
echo "Only run this once. It is only to create the correct"
echo "directories so the other scripts may run. Default is"
echo "no. Type "yes" completely in order to continue."
echo "(yes/no)"
read choice
if [ $choice = "yes" ]
then
mkdir ~/cvs
mkdir ~/cvs/limewire
else
echo "The directories were not made"
exit
fi
#done
Pretty simple, no? If its not blatantly obvious yet, the whole script was meant to make two folders in your home directory. You can do it on your own, I don't care, but the next two scripts would fail if you didn't make the dirs first.

cvs-update-limewire.sh


Quote:
#!/bin/sh
#LimeWire CVS Syncing & Compilation Script - crafted by graywind(at)badadmin(dot)net
#I don't claim to own anything. Its just a script that I wrote it so you could sit
#back and watch it download, compile, run, and just work. Please don't hurt me.
cd ~/cvs
echo ---- Just hit enter, the password is blank ----
cvs -d :pserver:guest@cvs.limewire.org:/cvs login
cvs -d :pserver:guest@cvs.limewire.org:/cvs checkout limewire
cd ~/cvs/limewire
cvs -d :pserver:guest@cvs.limewire.org:/cvs checkout lib
echo ---- Sync Complete. Now compiling latest cvs trunk... ----
cd ~/cvs/limewire/core
./compile
cd ~/cvs/limewire/gui
./compile
echo ---- Compilation Complete ----
#Optional execution option starts here
choice=" "
echo "Would you like to launch Limewire now? (y/n)"
read choice
if [ $choice = "y" ]
then
cd ~/cvs/limewire/gui
./run
else
echo "--------------- Limewire will not be launched ---------------"
echo "---- Thank you for using the LimeWire CVS Syncing Script ----"
exit
fi
#done
This is where all the cool stuff happens. First, you grab the goods from the CVS and put them in their place. Then you compile it all by executing the scripts that run ant, and afterwards a choice to run it. Another simple script, but look at all the typing you didn't have to do.


launch-limewire.sh

Quote:
#!/bin/sh
#LimeWire CVS build execution script
cd ~/cvs/limewire/gui
./run
It does what it says, and does it well. What can I say? I like shortcuts :p

I put these scripts in a zip instead of a tarball, becase this board doesn't like tarballs, and is now attached to this message. Its all pretty simple.

O' course, make sure you have ant and the latest version of java before doing any of this.

Extract it to your home folder.
Run the scripts from the terminal:
./makedirs-limewire.sh
./cvs-update-limewire.sh
And you are set :D

I don't claim to own anything like the comment in the scripts mentions, and I would actually think it rather awesome if the LimeWire folk thought it was useful at all, and see no reason why the cool LW people would see a need to sue me anyways. ;)

I just hope I didn't do something someone else did already. I do dislike wasting time when I could just be slouchin' :cool:

So what do you guys think? Useful, or waste of time?

Update01: Found something I left out, lib got dropped in a bad place :o
Attached Files
File Type: zip compilethis.zip (1.3 KB, 33 views)

Last edited by graywind; January 20th, 2004 at 05:01 PM.