Blender Underground

Away from the watchful eye of The Man
It is currently Fri May 24, 2013 1:59 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Updating script
PostPosted: Tue Jan 06, 2009 6:27 pm 
Offline
Director
User avatar

Joined: Thu Sep 06, 2007 8:17 am
Posts: 5144
Location: West Virginia, USA
I have a script that automatically updates from SVN. I was recently having crashes when compiling and it turns out that SVN doesn't update the ASM in FFMPEG. The fix, of course, is to do a "scons clean" before compiling forcing a recompile of the ASM. The down side is when you do that, it has to compile the whole thing over. Here is the code:

Code:
#! /bin/bash
#This script assumes the directory BlenderSVN exists in your home directory
cd ~/BlenderSVN
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/blender
cd blender
scons clean
scons
cd ../install/linux2/plugins
chmod 755 bmake
make
cd ~/


This fixes the crashes when I update now.... :D

_________________
Life is an illusion....It's the magician you have to worry about!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 10, 2009 8:00 am 
Offline
Operative
User avatar

Joined: Sun Dec 14, 2008 3:28 am
Posts: 178
Location: Nederland//The Netherlands
what distros does it work in??

Maybe an idea to check if the directory BlenderSVN exists if not mkdir it prehaps dunno if it works though :D

_________________
Come to the dark side we have cookies :P


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 10, 2009 12:49 pm 
Offline
Director
User avatar

Joined: Thu Sep 06, 2007 8:17 am
Posts: 5144
Location: West Virginia, USA
It should work with any distro. Yes, I could have done:

if (! ~/BlenderSVN)
mkdir ~/BlenderSVN
fi

but that would be too easy.... :D

_________________
Life is an illusion....It's the magician you have to worry about!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by Xaphos © 2007, 2008, 2009 phpBB.fr