cppannotations/bin/ziplatex
2008-03-21 12:33:42 +00:00

42 lines
1.2 KiB
Bash
Executable file

#!/bin/sh
cd `dirname $0`
CPPDIR=`cd ..;pwd`
CPP=`basename $CPPDIR`
cd `dirname $CPPDIR`
cp $CPP/single/legal.shtml $CPP/latex
ln -sf ../contrib $CPP/latex
rm -f $CPP/zip/cplusplus.ps.zip $CPP/zip/cplusplus.pdf.zip \
$CPP/zip/cplusplus.latex.zip
if [ -s $CPP/latex/cplusplus.ps ] ; then
zip -m $CPP/zip/cplusplus.ps.zip $CPP/latex/*.ps
zip -r $CPP/zip/cplusplus.ps.zip $CPP/latex/legal.shtml \
$CPP/changelog \
$CPP/latex/contrib \
$CPP/README -x *.svn*
fi
if [ -s $CPP/latex/cplusplus.pdf ] ; then
zip -m $CPP/zip/cplusplus.pdf.zip $CPP/latex/*.pdf
zip -r $CPP/zip/cplusplus.pdf.zip $CPP/latex/legal.shtml \
$CPP/changelog \
$CPP/latex/contrib \
$CPP/README -x *.svn*
fi
zip -ry $CPP/zip/cplusplus.latex.zip $CPP/latex/* \
$CPP/changelog \
$CPP/README -x *.svn*
zip -r $CPP/zip/cplusplus.latex.zip $CPP/latex/contrib -x *.svn*
rm $CPP/latex/contrib
# end