| version 1.3, 2004/10/14 14:54:08 |
version 1.4, 2004/10/31 14:56:23 |
|
|
| |
|
| |
|
| |
|
| |
Why this script was developed? |
| |
------------------------------ |
| |
|
| |
If you have one master CVS Repository and multiple CVS mirrors, you |
| |
must change CVS/Root files in all subdirectories if you want commit |
| |
into master CVS Repository but make 'cvs diff' towards slave CVS |
| |
Repository (e.g. your local CVS Repository copy). |
| |
|
| |
With cvs-switch script you can easily switch between multiple CVS |
| |
Repositories (CVS Roots). Actual list of available CVS Repositories is |
| |
based on your current domain name. |
| |
|
| |
|
| |
|
| |
|
| Usage |
Usage |
| ----- |
----- |
| |
|
| Add next line to your ~/.bashrc, ~/.zshrc or etc.: |
Add next line to your ~/.bashrc, ~/.zshrc or etc.: |
| |
|
| alias cvs-switch='eval `$HOME/prog/cvs/scripts/shell/cvs-switch/cvs-switch.sh`' |
alias cvs-switch='eval `$HOME/prog/cvs/scripts/shell/cvs-switch/cvs-switch.sh`' |
| |
alias cvs='cvs -d $CVSROOT' |
| |
|
| Then you can easily switch between CVS Repositories with alias 'cvs-switch'. |
Then you can easily switch between CVS Repositories with alias 'cvs-switch'. |
| Available CVS Repositories are configured in your ~/.cvs-repositories.conf |
Available CVS Repositories are configured in your ~/.cvs-repositories.conf |
|
|
| Change name of the variable 'DOMAIN_domain_company_sk' as needed. For |
Change name of the variable 'DOMAIN_domain_company_sk' as needed. For |
| domainname 'google.com' create variable with name 'DOMAIN_google_com' |
domainname 'google.com' create variable with name 'DOMAIN_google_com' |
| (replace dots with '_' character). Add keywords describing your CVS |
(replace dots with '_' character). Add keywords describing your CVS |
| Repositores (available for this domain) into this variable. In example above |
Repositories (available for this domain) into this variable. In example above |
| I have used keywords 'company_cvs', 'company_rajo', 'company_cvs_local'. |
I have used keywords 'company_cvs', 'company_rajo', 'company_cvs_local'. |
| Then create variables TITLE_<keyword1>, TITLE_<keyword2>, ..., |
Then create variables TITLE_<keyword1>, TITLE_<keyword2>, ..., |
| CVSROOT_<keyword1>, CVSROOT_<keyword2>, ..., CVS_RSH_<keyword1>, ... |
CVSROOT_<keyword1>, CVSROOT_<keyword2>, ..., CVS_RSH_<keyword1>, ... |
|
|
| |
|
| This script was tested on Linux and FreeBSD. Solaris is not well tested. |
This script was tested on Linux and FreeBSD. Solaris is not well tested. |
| |
|
| |
Cvs relase version 1.1 has changed behaviour of 'cvs' command. With |
| |
newer cvs version than 1.10 it is possible for a single CVS command to |
| |
recurse into several CVS roots. See |
| |
https://ccvs.cvshome.org/source/browse/ccvs/NEWS?r1=1.74&r2=1.75 for |
| |
details. But this behaviour is in conflict with this, what you want. |
| |
You will switch between master and slave CVS Repositories "on the |
| |
fly". ;-) |
| |
|
| |
|
| Licensing |
Licensing |
|
|
| Solaris | SunOS | hostname | domainname | echo `hostname`.`domainname` |
Solaris | SunOS | hostname | domainname | echo `hostname`.`domainname` |
| |
|
| |
|
| $Platon$ |
$Platon: scripts/shell/cvs-switch/README,v 1.3 2004/10/14 14:54:08 rajo Exp $ |
| |
|
| -- |
-- |
| Lubomir Host 'rajo' <rajo AT platon.sk> |
Lubomir Host 'rajo' <rajo AT platon.sk> |