#!/bin/bash # svn: $Id$ ############ Fake update.preliminaries.sh #################### UPDATE=/tmp TARDIR=/tmp/DylpDists MAXAGE=3 NULL=/dev/null mkdir -p ${TARDIR} ########### Begin dylp daily tarball actions ############################# # Generate a distribution name, e.g., dylp-2005Oct27 DISTNAME=dylp-`date +%Y%b%d` #SVNURL=file:///home/coin/SVN/DyLP SVNURL=http://www.coin-or.org/svn/DyLP # Export, rather than checkout. Check the code out from the subversion # repository if you want a repository. Trunk only. cd ${UPDATE} svn export ${SVNURL}/Trunk ${DISTNAME} # Create the tarball. tar cf ${DISTNAME}.tar ${DISTNAME} gzip ${DISTNAME}.tar cp ${DISTNAME}.tar.gz ${TARDIR} # Clean out tarballs that have passed their `best before' date. rm -f `find ${TARDIR} -name dylp\* -type f -mtime +${MAXAGE}` ############################### *** THE END *** ############################### cd ${HOME} # rm -rf ${UPDATE}