Re: Packages

Andrew Kohlsmith <[email protected]>
Newsgroups gmane.comp.java.xwt.widgets
Organization Benshaw Canada
Message-ID <[email protected]>
> I want to make the widget set available for download. What about I cut a
> snapshot of the current CVS (after tagging it) and making that the
> 'official package' for now, and make a nightly snapshot of the audit
> available on dist.xwt.org?

That's exactly what I've been doing for months with the mixdown CVS -- a 
little cron job:

#!/bin/bash

DATE=`date +%Y%m%d`
TMPDIR=/tmp/cvssnapshot
DESTDIR=/www/mixdown.ca/users/xwt/cvs-snapshots
MODULES="widgets"

rm -rf $TMPDIR
mkdir -p $TMPDIR

for MODULE in $MODULES; do
        SNAPFILE=$MODULE-$DATE.tar.gz

echo $MODULE
        cd $TMPDIR &&
        cvs -d /cvsroot export -D 'yesterday' $MODULE &&
        tar -cf $MODULE-$$.tar $MODULE &&
        bzip2 -9 $MODULE-$$.tar &&
        mv $MODULE-$$.tar.gz $DESTDIR/$SNAPFILE &&
        cd $DESTDIR &&
        rm -f $MODULE-current.tar.gz &&
        ln -s $SNAPFILE $MODULE-current.tar.gz
done

I imagine that for you you would want to export -r audit or something to get 
the widgets from the widget audit.

Regards,
Andrew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.