(Note that some areas on this server, www.gnu.org, that are under CVS, have their CVSROOT on remote CVS servers.)
This page lists (most, if not all) the areas on www.gnu.org that are under CVS and how to add new areas to CVS. [@@ The instructions for adding new areas is not yet complete. --ttn, 2000/07/24 10:49:51]
We don't list volunteers who maintain these areas, because they
might not want their
email address exposed to spammers.
Ask webmasters@gnu.org
to add them to ~www/GNU.web-folk.html
which is not
published on this site for that reason.
/home/www/html/brave-gnu-world/
/home/www/html/software/adns/
/home/www/html/software/awacs/
/home/www/html/software/guile/
/home/www/html/software/hurd/
/home/www/html/software/libtool/
/home/www/html/software/userv/
/home/www/html/software/xlogmaster/
/home/www/html/
.
Before you put any of the web site under CVS please consult with webmasters@gnu.org.
Consult the CVS Manual as necessary.
If you want to put a portion of the web site under CVS, here's how to go about it:
$ export CVSROOT=/home/www/cvs
html
module to look the way you want.
This is the CVS module that contains all the web pages under CVS for
www.gnu.org. At the end of this step, your subtree under the "live"
tree (/home/www/html/SUBTREE) will be checked into CVS as html/SUBTREE.
$ cd /home/www/html/SUBTREE $ cvs import html/SUBTREE $USER firstCVS will start up an editor and prompt you for a log message. Enter the message, write it, exit the editor, and you are done with this step.
$ cd /home/www/html/DIR $ mkdir /home/www/cvs/html/DIR $ chmod 775 /home/www/cvs/html/DIR $ chmod g+s /home/www/cvs/html/DIR $ ln -s /home/www/cvs/html/DIR RCS $ rcs-checkin .* * # ignore warnings about . and .. $ rm RCSYou are now done with this step. [@@This should be put into a script. -ttn] [@@And this script should walk the DIR doing this for each sub-dir from the bottom up. -len]
html
module:
$ [@@ Would a CVS Wizard PLEASE ... ] $ [@@ ... ADD SHELL COMMANDS etc. THAT DO THIS]create the directories and files you want, add a CVS exculsion file to not store certain files in CVS (for example, editor backup files, automatically generated files (e.g.
TAGS
)
[@@ Would a CVS wizard please add information on how to do
this -len]
and then use
$ cvs addto add them, working from the top to the leaves. Note that CVS can't handle symlinks; we'll put them it later. [@@This should be put into a script. -ttn] [@@And this script should walk the DIR doing this for each sub-dir from the bottom up. -len]
html
module to
look the way you want the corresponding portion of the web site to
look, turn the appropriate portion of the web server's tree into a
CVS working directory. Suppose SUBTREE has the form PARENT/TAIL,
where TAIL is a single path component.
[@@This should be put into a script. -ttn] [@@And this script should walk the DIR doing this for each sub-dir from the bottom up. -len]
$ cd /home/www/html/PARENT $ cvs checkout -d temp-dir html/SUBTREE
$ mv TAIL old-dir; mv temp-dir TAIL
find TAIL -type d ! -name CVS \ | while read d; do ln -s `basename $d`.html $d/index.html doneWe'll just leave them there, and CVS will ignore them.
cvsadmin
to do this
step.)
[@@This should be put into a script. -ttn] [@@And this script should walk the DIR doing this for each sub-dir from the bottom up. -len]
$ cd $ cvs checkout CVSROOT $ cd CVSROOT
loginfo
in the current (CVSROOT) directory:
^html/SUBTREE $CVSROOT/CVSROOT/track-cvs /home/www/html/SUBTREE
loginfo
,
so CVS can see them:
$ cvs commit -m 'Automatically update SUBTREE' loginfo
$ cd $ cvs checkout html/SUBTREEDebugging Tip: In this step, make sure NOT to use
$ cvs checkout -d DIR html/SUBTREEIf you do so, CVS cannot match
^html/SUBTREEin the
loginfo
file and
the live website will not be updated correctly.
$ cd $ cvs edit html/SUBTREE/somefile.html $ echo >> html/SUBTREE/somefile.html # trivial change C-d $ cvs commit -m'testing' html/SUBTREE/somefile.html
After some seconds, /home/www/cvs/html/SUBTREE/somefile.html should reflect the trivial change. You can check that file manually or with a web browser.
$ diff -r old-dir html/SUBTREEand fix any problems.
$ cd /home/www/html/PARENT $ rm -rf old-dir
Updated: <!-- hhmts start --> 26 Jul 2000 tower <!-- hhmts end --> <HR>to
Updated: <!-- timestamp start --> $Date$ $Author$ <!-- timestamp end --> <HR>A way to do this, is to add the filename
TAGS
to the CVS exculsion file
for html/SUBTREE.
[@@ Would a CVS wizard please add information on how to do
this -len]
Then
$ cd html/SUBTREE $ find . -name "*.html" -type f -print | xargs /usr/bin/etags -D -l none -a -o TAGSThen use the GNU Emacs' function
tags-query-replace
to replace the text in each file that has it. Then
$ rm html/SUBTREE/TAGS
Return to GNU's home page.
Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to contact the FSF.
Please send comments on these web pages to webmasters@gnu.org, send other questions to gnu@gnu.org.
Copyright (C) 1999, 2000 Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
Updated: $Date: 2005/05/05 19:37:20 $ $Author: novalis $