Eric Faurot wrote:
>Christoph Egger writes:
> >
> >
> > Hi!
> >
> > The cvs-snapshots at ftp://ftp.ggi-project.org/pub/ggi/ggi-snapshots
> > are obseleted and the creation process seems to be broken.
> >
> > Is anyone here, who can fix the creation process up to create the
> > snapshots from the SourceForge CVS, please?
>
>I can do that, but is it really necessary? I mean what do you use the
>snaspshots for?
>
snapshots are good for people who want to download the most recent
sources without using cvs.
A snapshot script should therefor be a crontab job that checks out from
cvs, checks whether there
are any differences to the last version, and if so generate a snapshot.
here is the relevant part of a Makefile we use to generate snapshots as
well as diffs
on sourceforge (for berlin). It does the following:
* cvs update the current root
* rename it to 'berlin-15-05-01'
* compare it to yesterdays version
* if there are no changes, stop
* else make a snapshot as well as a diff package
* move both to the ftp directory
* relink 'berlin-current' to the latest version
#
# generate a new snapshot for Berlin, and a diff, if appropriate
#
snapshot:
( cd $(prefix); \
if test \! -d Berlin-$(today) ; then \
cvs -z3 -Q update Berlin >/dev/null; \
umask 002; \
cp -R Berlin Berlin-$(today) && \
if test -d Berlin-last ; then \
LASTCHANGE=`date -r Berlin-last +%y%m%d`; \
diff -ur Berlin-$$LASTCHANGE Berlin-$(today) >
Berlin-$$LASTCHANGE-$(today).diff; \
if test -s Berlin-$$LASTCHANGE-$(today).diff ; then \
gzip Berlin-$$LASTCHANGE-$(today).diff; \
tar -zcf Berlin-$(today).tar.gz
Berlin-$(today) ; \
mv Berlin-$$LASTCHANGE-$(today).diff.gz
$(snapdir) && \
mv Berlin-$(today).tar.gz $(snapdir) && \
( \
rm Berlin-last; \
rm -rf Berlin-$$LASTCHANGE; \
ln -s Berlin-$(today) Berlin-last; \
rm
$(snapdir)/Berlin-current.tar.gz; \
ln -s Berlin-$(today).tar.gz
$(snapdir)/Berlin-current.tar.gz \
) \
else \
rm -rf Berlin-$(today); \
rm Berlin-$$LASTCHANGE-$(today).diff; \
fi; \
else \
ln -s Berlin-$(today) Berlin-last; \
tar -zcf Berlin-$(today).tar.gz Berlin-$(today); \
mv Berlin-$(today).tar.gz $(snapdir); \
ln -s Berlin-$(today).tar.gz
$(snapdir)/Berlin-current.tar.gz; \
fi; \
find $(snapdir) -ctime 60 -exec rm {} \; ; \
else \
1>&2 echo "Sanity check failed: Berlin-$(today) exists.
Aborting."; \
fi )
---
and here is the result: ftp://berlin.sourceforge.net/pub/berlin/snapshots/
Regards, Stefan
PS: again, I do think that the best place for this is sourceforge. You
may have mirrors, though.