2001-08-19 03:42:36 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2004-05-12 14:13:38 +04:00
|
|
|
# makesrcdist - make a distribution of FLTK.
|
2001-08-19 03:42:36 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
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
|
2004-07-27 22:47:26 +04:00
|
|
|
cvs -q -d$MAINTAINER@cvs.sourceforge.net:/cvsroot/fltk get -P -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
|
|
|
|
|
2004-05-12 14:13:38 +04:00
|
|
|
if test x$version != xsnapshot; 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
|
2003-05-26 20:12:39 +04:00
|
|
|
rm -f makesrcdist
|
2001-08-19 03:42:36 +04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2003-05-26 20:23:08 +04:00
|
|
|
echo "Done!"
|