Revision: 640
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=640&view=rev
Author: mithro
Date: 2008-07-15 05:35:36 -0700 (Tue, 15 Jul 2008)
Log Message:
-----------
Add better error detection.
Added missing dependencies.
Added variations for different distros.
Modified Paths:
--------------
trunk/python-ogre/scripts/build-deb.sh
Modified: trunk/python-ogre/scripts/build-deb.sh
===================================================================
--- trunk/python-ogre/scripts/build-deb.sh 2008-07-15 12:34:07 UTC (rev 639)
+++ trunk/python-ogre/scripts/build-deb.sh 2008-07-15 12:35:36 UTC (rev 640)
@@ -1,10 +1,25 @@
#! /bin/sh
+if [ ! -x python-ogre ]; then
+ echo "The python-ogre directory does not exist,"
+ echo "please make sure you are running this script"
+ echo "from the directory you check out the code."
+ exit
+fi
+
# Run sudo so that we have the permissions to do things
sudo true
+. python-ogre/scripts/00-PreReqs.sh
+
# The following modules are provided by the operating system
-sudo apt-get install \
+sudo apt-get install -y \
+ debhelper \
+ fakeroot \
+ chrpath \
+ python-all \
+ python-setuptools \
+ \
cmake \
scons \
nvidia-cg-toolkit \
@@ -14,8 +29,13 @@
libfreeimage-dev \
libois-dev \
libogre-dev \
- libceguiogre-dev
+ libopenal-dev
+DISTRO_CODENAME=`lsb_release -c | sed -e's/.*:\t*//'`
+if [ "x$DISTRO_CODENAME" = "xhardy" ]; then
+ sudo apt-get install libceguiogre-dev
+fi
+
# Things we need to build ourself
# The extra boost support module
@@ -41,4 +61,5 @@
# Generate the python-ogre package
cd python-ogre
dpkg-checkbuilddeps || exit
+chmod a+x ./debian/rules
fakeroot ./debian/rules binary
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|