3029ac5
#!/bin/sh
3029ac5
3029ac5
set -e
3029ac5
3029ac5
tmp=$(mktemp -d)
3029ac5
3029ac5
trap cleanup EXIT
3029ac5
cleanup() {
3029ac5
    set +e
3029ac5
    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
3029ac5
}
3029ac5
3029ac5
unset CDPATH
3029ac5
pwd=$(pwd)
3a495b5
BVERSION=2.49b
3029ac5
3029ac5
pushd "$tmp"
3029ac5
if [ -e $pwd/blender-${BVERSION}.tar.gz ] ; then
3029ac5
tar zxvf $pwd/blender-${BVERSION}.tar.gz
3029ac5
fi
3029ac5
3029ac5
pushd blender-${BVERSION}
3029ac5
pushd extern
3029ac5
#Removed because of ip
3029ac5
  rm -rf ffmpeg libmp3lame x264 xvidcore
3029ac5
#Removed because we can expect to use system one
951be36
#  rm -rf fftw glew libopenjpeg ode qhull make verse
3029ac5
#Will have to be removed later: bFTGL
3029ac5
popd
3029ac5
rm -rf scons
3029ac5
popd
3029ac5
3029ac5
tar jcf "$pwd"/blender-${BVERSION}-repack.tar.bz2 blender-${BVERSION}
3029ac5
3029ac5
3029ac5
popd