Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial/Tutorial/build/run @ 45

Last change on this file since 45 was 45, checked in by nicolasc, 17 years ago

added run-script to do autoconfig of plugins.cfg

  • Property svn:executable set to *
File size: 479 bytes
Line 
1#!/bin/bash
2
3if [[ !  -f main ]] ; then
4        echo "main does not exist"
5        echo "did you compile it?"
6
7        exit 1
8fi
9
10# check if plugins.cfg exists, and of not create it
11# and modify
12if [[ ! -f plugins.cfg ]] ; then 
13        cp plugins.cfg-init plugins.cfg
14
15        is_tardis=`uname -n | grep tardis`
16        echo "isTardis: ${is_tardis}"
17        if [[ is_tardis  ]] ; then 
18                sed -e 's:PLuginFolder=/usr/lib/OGRE:PluginFolder=/usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/lib/OGRE/:' plugins.cfg
19        fi
20fi
21exec ./main
Note: See TracBrowser for help on using the repository browser.