5 # ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version. The Blender
11 # Foundation also sells licenses for use in proprietary software under
12 # the Blender License. See http://www.blender.org/BL/ for information
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software Foundation,
22 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 # The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
25 # All rights reserved.
27 # The Original Code is: all of this file.
29 # Contributor(s): none yet.
31 # ***** END GPL/BL DUAL LICENSE BLOCK *****
33 # OS specific stuff for the package, only to be executed by ../Makefile
35 SHORTVERS=`echo $VERSION | sed 's/\.//'`
37 # Create ^M in readme.txt
38 awk '{printf("%s\r\n", $0);}' $DISTDIR/README > $DISTDIR/Readme.txt
41 # Create ^M in copyright.txt
42 awk '{printf("%s\r\n", $0);}' $DISTDIR/copyright.txt > $DISTDIR/aCopyright.txt
43 rm -f $DISTDIR/copyright.txt
44 mv -f $DISTDIR/aCopyright.txt $DISTDIR/Copyright.txt
45 # PS. the whole aCopyright kludge is because of windows being braindead
47 # Create ^M in copyright.txt
48 awk '{printf("%s\r\n", $0);}' $DISTDIR/GPL-license.txt > $DISTDIR/temp.txt
49 mv -f $DISTDIR/temp.txt $DISTDIR/GPL-license.txt
51 # Add Release info text
52 cp -f ../text/Release_$SHORTVERS.txt $DISTDIR/Release_$SHORTVERS.txt
53 awk '{printf("%s\r\n", $0);}' $DISTDIR/Release_$SHORTVERS.txt > $DISTDIR/temp.txt
54 mv -f $DISTDIR/temp.txt $DISTDIR/Release_$SHORTVERS.txt
56 # Add Python DLL to package
57 # Stupid windows needs the . removed :
58 PVERS=`echo $NAN_PYTHON_VERSION | sed 's/\.//'`
59 cp -f $NAN_PYTHON/lib/python$PVERS.dll $DISTDIR/python$PVERS.dll
60 chmod +x $DISTDIR/python$PVERS.dll
62 # Add fmod DLL to package
63 # cp -f $NAN_FMOD/lib/fmod.dll $DISTDIR/fmod.dll
64 # chmod +x $DISTDIR/fmod.dll
66 # Add gettext DLL to package
67 cp -f $NAN_GETTEXT/lib/gnu_gettext.dll $DISTDIR/gnu_gettext.dll
69 # Add SDL DLL to package
70 cp -f $NAN_SDL/lib/sdl.dll $DISTDIR/sdl.dll
72 # Add SOLID DLL to package
73 cp -f $NAN_SOLID/lib/win32/vc6/solid.dll $DISTDIR/solid.dll
75 # Add the Help.url to the ditribution
76 cp -f extra/Help.url $DISTDIR/
78 # Add the language files to package
79 cp -f -R $NAN_OBJDIR/windows/bin/.blender $DISTDIR/
80 # Remove the pesky CVS dirs
81 find $DISTDIR/.blender -name CVS -prune -exec rm -rf {} \;
83 # Add .bfont.ttf and .Blanguages
84 cp -f $NANBLENDERHOME/bin/.blender/.bfont.ttf $DISTDIR/.blender/.bfont.ttf
85 cp -f $NANBLENDERHOME/bin/.blender/.Blanguages $DISTDIR/.blender/.Blanguages
87 # make the installer package with NSIS
88 NSIS="$PROGRAMFILES/NSIS/makensis.exe"
89 if (`test -x "$NSIS"`) then
91 TEMPFILE=00.blender_tmp.nsi
92 DISTDIR=`cygpath -m $DISTDIR`
93 # make a installer config for this release
94 cat 00.blender.nsi | sed "s|VERSION|$VERSION|g" | sed "s|DISTDIR|$DISTDIR|g" | sed "s|SHORTVERS|$SHORTVERS|g" | sed "s|MUI_$VERSION|MUI_VERSION|g" > $TEMPFILE