From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/30153 Path: main.gmane.org!not-for-mail From: Russ Allbery Newsgroups: gmane.emacs.gnus.general Subject: Re: About cvs Date: 21 Apr 2000 20:59:24 -0700 Organization: The Eyrie Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035166722 6970 80.91.224.250 (21 Oct 2002 02:18:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:18:42 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id EC75BD051E for ; Sat, 22 Apr 2000 00:00:22 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id XAB27478; Fri, 21 Apr 2000 23:00:21 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 21 Apr 2000 22:59:30 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id WAA11411 for ; Fri, 21 Apr 2000 22:59:19 -0500 (CDT) Original-Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.64.12.23]) by mailhost.sclp.com (Postfix) with SMTP id 6F275D051E for ; Fri, 21 Apr 2000 23:59:34 -0400 (EDT) Original-Received: (qmail 26105 invoked by uid 50); 22 Apr 2000 03:59:25 -0000 Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "21 Apr 2000 20:52:39 +0200" Original-Lines: 145 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:30153 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:30153 Lars Magne Ingebrigtsen writes: > Julien Gilles writes: >> I know that there is a cvs server to pgnus sources, but I am behind a >> firewall, and no way to use cvs trough web. It is possible to have, >> once a day, an automatic tar file of pgnus sources in the /gnus/dist/ >> directory ? > If someone writes a script to do that, I'll put it in crontab... Here's the script that we use to do this for INN. It would need some adjustment for local patches, local CVS repository paths, and the like, but it should at least serve as a starting point for someone. #!/bin/sh ## $Id: nightlysnap,v 1.4 2000/04/13 06:09:19 rra Exp $ ## ## Generate the INN nightly CVS snapshots. ## ## Does a full checkout of each currently maintained CVS branch, updates ## the version information in Makefile.global.in and adds a README, and ## bundles up the tar file for later pulling by ftp.isc.org. # Set the path to find cvs and standard shell commands. PATH="/usr/local/bin:/usr/contrib/bin:/usr/bin:/bin" export PATH # Directory into which to copy each snapshot tarball. FTPDIR="/var/ftp/inn-snaps" # Name of the log file into which to log the output of this script. LOGFILE="nightly.log" # Check out inn, pruning empty subdirectories, with the given tag and then # update the version string in Makefile.global.in to the snapshot date. # Also remove all the CVS directories; they aren't useful anyway since # anyone with CVS can as easily do a direct checkout and the Repository # information would require tweaking. checkout () { command="cvs -f -d /proj/cvs/isc/inn checkout -P" if [ -n "$1" ] ; then command="$command -r $1" fi $command inn || { echo cvs checkout failed exit 1 } date=`date -u +%Y%m%d` sed "s/= CVS prerelease/= $date prerelease/" inn/Makefile.global.in > m \ && mv m inn/Makefile.global.in find inn -type d -name CVS -print | xargs rm -r } # tar up and compress a directory, delete the directory, and move the # resulting tarball to FTPDIR. mktarball () { if [ -z "$1" ] ; then echo mktarball requires an argument exit 1 fi base="$1" tar cf - "$base" | gzip -9 > "$base.tar.gz" || exit 1 cp "./$base.tar.gz" "$FTPDIR" || exit 1 rm -rf "$base" "$base.tar.gz" } # cd to a known starting directory, open our log, and start logging. cd $HOME exec > nightly.log 2>&1 set -vx # Make sure the ftp directory exists and is empty. if [ -d "$FTPDIR" ]; then rm -f "$FTPDIR"/* else mkdir "$FTPDIR" fi # Purge and create the local working directory we'll use. rm -rf nightly mkdir nightly cd nightly || { echo "can't cd to nightly" exit 1 } date=`date -u +%Y%m%d` # Create the CURRENT snapshot. checkout cat > inn/README.snapshot < inn/README.snapshot < inn/README.BETA <