Nightbuild autoinstall script

Dunno if someone will it useful, it servers its purpose for me.

I wrote this bash script to automatically install downloaded nightbuild and sources and copy them to my home lib dir. From there, it updates my project with newer files.

Here it is, I think changing initial variables will be enough to configure it for your system.



#!/bin/bash

JMETEMP=~/lib/jme-install-temp
JMEINSTALL=~/lib/jme
RIOTDIR=~/workspace/riot-in-ecity
LOG=$JMETEMP/logfile.log

if [ -d $JMETEMP ];
then
   echo "Erasing old directory..."
   rm -rf $JMETEMP
fi

echo "Making new $JMETEMP"
mkdir $JMETEMP
cd $JMETEMP

echo "Downloading nightbuild & sources..."
wget http://captiveimagination.com/download/jme/nightly/jME.zip
wget http://captiveimagination.com/download/jme/nightly/src.zip

if [ -d $JMEINSTALL ];
then
    echo "Erasing old jme libs & sources..."
    rm -rf $JMEINSTALL
fi

echo "Unzipping libs..."
unzip -d $JMEINSTALL jME.zip >> $LOG
echo "Unzipping sources..."
unzip -d $JMEINSTALL src.zip >> $LOG

echo "Copying libs to Riot..."
cp -vfu $JMEINSTALL/*.jar $RIOTDIR/lib >> $LOG
cp -vfu $JMEINSTALL/lib/* $RIOTDIR/lib >> $LOG
rm $RIOTDIR/lib/junit-*.jar
echo "Done."

so you still didn't manage to check out from cvs :wink:



i think this might be useful for some people.

I did I did I did, haven't you see my reply :smiley: