#!/bin/sh # # makesrcdist - make a distribution of FLTK. # echo "Getting distribution..." CVS_RSH=ssh; export CVS_RSH MAINTAINER=easysw cd /tmp cvs -q -d$MAINTAINER@cvs.sourceforge.net:/cvsroot/fltk get -P -r v1_1 fltk if test $# = 0; then echo -n "Version number for distribution? " read version else version=$1 fi rm -rf fltk-$version mv fltk fltk-$version cd fltk-$version if test x$version != xsnapshot; then echo "Tagging release..." tag=`echo v$version | tr '.' '_'` cvs tag -F $tag fi echo "Making configuration script..." autoconf echo "Removing CVS directories..." find . -name .cvsignore -exec rm -f '{}' \; find . -name CVS -exec rm -rf '{}' \; rm -rf OpenGL autom4te* bc5 config forms gl glut images packages themes rm -f 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!"