2001-08-19 03:42:36 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# makedist - make a distribution of FLTK.
|
|
|
|
#
|
|
|
|
|
|
|
|
echo "Getting distribution..."
|
|
|
|
|
2002-05-02 19:40:24 +04:00
|
|
|
CVS_RSH=ssh; export CVS_RSH
|
2001-08-19 03:42:36 +04:00
|
|
|
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..."
|
|
|
|
|
2002-08-25 15:20:46 +04:00
|
|
|
find . -name .cvsignore -exec rm -f '{}' \;
|
|
|
|
find . -name CVS -exec rm -rf '{}' \;
|
|
|
|
|
2002-07-26 18:22:02 +04:00
|
|
|
rm -rf OpenGL autom4te* 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\!"
|