Attempt at separating distribution sources and docs.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2010-12-29 17:08:28 +00:00
parent 746c7e24b8
commit d24f7847b3
1 changed files with 26 additions and 7 deletions

View File

@ -14,6 +14,10 @@ if test $# = 0 -o "x$1" = xsnapshot; then
fileurl="ftp://ftp.easysw.com/pub/fltk/snapshots/fltk-$fileversion-source.tar.bz2"
url="."
else
if test ! -e "documentation/html/"; then
echo "ERROR: Please generate the HTML documentation and update the PDF."
exit
fi
echo Creating tag for release...
rev="1"
version=$1
@ -29,6 +33,11 @@ echo Exporting $version...
rm -rf /tmp/fltk-$version
svn export $url /tmp/fltk-$version
if test $# != 0 -a "x$1" != xsnapshot; then
echo "Copying HTML documentation..."
cp -r documentation/html /tmp/fltk-$version/documentation/
fi
echo Applying version number...
cd /tmp/fltk-$version
@ -47,17 +56,27 @@ rm -f makesrcdist
cd ..
echo "Making UNIX distribution..."
if test $# != 0 -a "x$1" != xsnapshot; then
echo "Making HTML docs distribution..."
gtar czf fltk-$fileversion-docs-html.tar.gz fltk-$version/documentation/html/
echo "Making PDF docs distribution..."
gtar czf fltk-$fileversion-docs-pdf.tar.gz fltk-$version/documentation/fltk.pdf
fi
echo "Removing documentation..."
rm -rf fltk-$version/documentation/html/
rm -f fltk-$version/documentation/fltk.pdf
echo "Making UNIX distribution..."
gtar czf fltk-$fileversion-source.tar.gz fltk-$version
echo "Making BZ2 distribution..."
gtar cjf fltk-$fileversion-source.tar.bz2 fltk-$version
#echo "Making BZ2 distribution..."
#gtar cjf fltk-$fileversion-source.tar.bz2 fltk-$version
echo "Making Windows distribution..."
rm -f fltk-$fileversion-source.zip
zip -r9 fltk-$fileversion-source.zip fltk-$version
#echo "Making Windows distribution..."
#rm -f fltk-$fileversion-source.zip
#zip -r9 fltk-$fileversion-source.zip fltk-$version
echo "Removing distribution directory..."