Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial/Tutorial/build/run-script @ 54

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

created clean-script; commented out cg-plugin as this is not available on every machine

  • Property svn:executable set to *
File size: 600 bytes
RevLine 
[45]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
[51]10if [[ ! -f orge.cfg ]] ; then
11        cp ogre.cfg-init ogre.cfg
12fi
13
[45]14# check if plugins.cfg exists, and of not create it
15# and modify
16if [[ ! -f plugins.cfg ]] ; then 
17        is_tardis=`uname -n | grep tardis`
18        echo "isTardis: ${is_tardis}"
19        if [[ is_tardis  ]] ; then 
[54]20                sed -e 's:PluginFolder=/usr/lib/OGRE:PluginFolder=/usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/lib/OGRE/:' \
21                -e 's:#Plugin=Plugin_CgProgramManager:Plugin=Plugin_CgProgramManager:' plugins.cfg-init > plugins.cfg
[45]22        fi
23fi
24exec ./main
Note: See TracBrowser for help on using the repository browser.