2001-08-19 03:42:36 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# makedist - make a distribution of FLTK.
|
|
|
|
#
|
|
|
|
|
|
|
|
echo "Getting distribution..."
|
|
|
|
|
|
|
|
CVS_RSH=ssh1; export CVS_RSH
|
|
|
|
MAINTAINER=easysw
|
|
|
|
|
|
|
|
cd /tmp
|
2001-08-19 04:14:12 +04:00
|
|
|
cvs -q -d$MAINTAINER@cvs.fltk.sourceforge.net:/cvsroot/fltk get -r v1_1 fltk
|
2001-08-19 03:42:36 +04:00
|
|
|
|
2001-08-19 04:09:06 +04:00
|
|
|
if test $# = 0; then
|
2001-08-19 03:42:36 +04:00
|
|
|
echo -n "Version number for distribution? "
|
2001-08-19 04:09:06 +04:00
|
|
|
read version
|
2001-08-19 03:42:36 +04:00
|
|
|
else
|
2001-08-19 04:09:06 +04:00
|
|
|
version=$1
|
|
|
|
fi
|
2001-08-19 03:42:36 +04:00
|
|
|
|
|
|
|
rm -rf fltk-$version
|
|
|
|
mv fltk fltk-$version
|
|
|
|
cd fltk-$version
|
|
|
|
|
2001-08-19 04:09:06 +04:00
|
|
|
if test x$version != snapshot; then
|
2001-08-19 03:42:36 +04:00
|
|
|
echo "Tagging release..."
|
|
|
|
|
2001-09-09 00:16:13 +04:00
|
|
|
tag=`echo v$version | tr '.' '_'`
|
2001-08-19 03:42:36 +04:00
|
|
|
|
|
|
|
cvs tag -F $tag
|
2001-08-19 04:09:06 +04:00
|
|
|
fi
|
2001-08-19 03:42:36 +04:00
|
|
|
|
|
|
|
echo "Making configuration script..."
|
|
|
|
|
|
|
|
autoconf
|
|
|
|
|
|
|
|
echo "Removing CVS directories..."
|
|
|
|
|
|
|
|
rm -rf CVS */CVS */*/CVS
|
2002-03-26 20:38:17 +03:00
|
|
|
rm -rf OpenGL bc5 config forms gl glut images packages themes
|
2001-08-19 03:42:36 +04:00
|
|
|
rm makesrcdist
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
echo "Making UNIX distribution..."
|
|
|
|
|
|
|
|
gtar czf fltk-$version-source.tar.gz fltk-$version
|
|
|
|
|
|
|
|
echo "Making BZ2 distribution..."
|
|
|
|
gunzip -c fltk-$version-source.tar.gz | bzip2 -v9 >fltk-$version-source.tar.bz2
|
|
|
|
|
|
|
|
echo "Making Windows distribution..."
|
|
|
|
|
|
|
|
rm -f fltk-$version-source.zip
|
|
|
|
zip -r9 fltk-$version-source.zip fltk-$version
|
|
|
|
|
|
|
|
echo "Removing distribution directory..."
|
|
|
|
|
|
|
|
rm -rf fltk-$version
|
|
|
|
|
|
|
|
echo "Done\!"
|