Documentation Guide v2

Tommy Reynolds Tommy.Reynolds at MegaCoder.com
Mon Apr 25 13:56:30 UTC 2005


Uttered "Paul W. Frields" <stickster at gmail.com>, spake thus:

> You're definitely "on call" for that part... I added it to my Wiki
> notes.

Should be a no-brainer: 

#!/bin/sh
# Where are we playing?
sandbox="$1"
repo=${sandbox}/Repo,man
# Create necessary infrastructure
mkdir -p ${repo}
cd ${sandbox}
cvs -d ${repo} init
# Populate with FDP essentials
for x in documentation-guide example-tutorial
do
	cvs -d :pserver:anonymous at rhlinux.redhat.com:/usr/local/CVS co \
		-d ${x}-tmp ${x}
	find ${x}-tmp -name CVS -print | xargs rm -rf
	( 
		cd ${x}-tmp
		cvs -d ${repo} import -m"Imported ${x}" ${x} fdp-sandbox initial
	)
	cvs -d ${repo} co ${x}
	rm -rf ${x}-tmp
done
# All's well that ends well.


is all that's needed, except for error checking.

Cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-docs-list/attachments/20050425/4cabefce/attachment.sig>


More information about the fedora-docs-list mailing list