[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can I create a sym-link in CVS?



Hi,

	CVS offers some capability to do symlinks. It is fairly
 simple, requiring an edit of the modules file, and a shell
 script. Look at this (excerpt from my huge modules file), and the
 shell scripts used.

	Simple, really.

	manoj
______________________________________________________________________
__> cat /usr/local/src/Master/CVSROOT/modules

# Convenient aliases
world		-a .

# CVSROOT support; run mkmodules whenever anything changes.
CVSROOT		CVSROOT
modules		CVSROOT modules
loginfo		CVSROOT loginfo
commitinfo	CVSROOT commitinfo
rcsinfo		CVSROOT rcsinfo
editinfo	CVSROOT editinfo

# Debian Packages
# Third Party Debian Packages
latex2html 	 -s manoj -e $CVSROOT/CVSROOT/latex2html -o $CVSROOT/CVSROOT/latex2html debian/latex2html

# My Debian packages
pkg-order	 -s manoj -e $CVSROOT/CVSROOT/pkg-order -o $CVSROOT/CVSROOT/pkg-order       debian/pkg-order
______________________________________________________________________
__> cat /usr/local/src/Master/CVSROOT/latex2html 
#! /bin/sh
set -e
echo >&2 `pwd`
(cd $1/docs; test -f html.sty || ln -s ../texinputs/html.sty; \
                     test -f htmllist.sty || ln -s ../texinputs/htmllist.sty)
(cd $1/styles; test -f francais.perl || ln -s french.perl francais.perl; test -f germanb.perl || ln -s german.perl germanb.perl)
(cd $1/texinputs; test -f html.sty || ln -s html2e.sty html.sty)
______________________________________________________________________

__> cat /usr/local/src/Master/CVSROOT/pkg-order  
#! /bin/sh
set -e
(cd $1; test -f Package || ln -s Debian/Package; )
______________________________________________________________________


-- 
 I got my driver's license photo taken out of focus on purpose.  Now
 when I get pulled over the cop looks at it (moving it nearer and
 farther, trying to see it clearly)...  and says, "Here, you can go."
 Steven Wright
Manoj Srivastava  <srivasta@acm.org> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E


Reply to: