Loading...
 
Skip to main content

History: TikiCommandLineCVS

Preview of version: 10

Get the latest CVS using the command line

Getting Tiki CVS for the first time :

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tikiwiki login

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tikiwiki co tikiwiki

Getting the proper branch

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tikiwiki login
cvs co -r release_eta_carinea_rc1 -d tiki-1.7 tikiwiki

It will create a new directory named tiki-1.7/
Note : the name of the tag, despite it can suggest it's the rc1, is actually the name of the branch... historical mistake perpetuated...

The Available branches are release_eta_carinea_rc1, BRANCH-1-8, BRANCH-1-9 and HEAD (that last one is the default you'll have if you don't specify the branch name with the -r param).

The module is tikiwiki, including the tikiwiki source code, including smarty and adodb third party source code. If you only need the tiki source and use your own smarty and adodb, you can use the module named __tiki_ instead of tikiwiki.

-----

Getting only the parts of Tiki that have changed :

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tikiwiki login

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tikiwiki up -dP

--

Getting the docs from CVS :

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tikiwiki login

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tikiwiki co tiki-docs

This will create a tiki-docs/


--------

Bash script to update only Tiki parts that have changed :


Open your console in the directory with tiki, in my case /var/www/html. Then type :

vi tikicvs.sh

I copy pasted the text into vi. The copy part is easy ctrl +c pasting into the console is ctrl+ shift+v

#! /bin/sh
# this should do the trick
#
# Where you tikiwiki is
MYTIKI=/home/www/tikiwiki
#
CVSROOT=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/tikiwiki"
CVS_RSH=""
export CVSROOT CVS_RSH

cd $MYTIKI

cvs -d $CVROOT login
cvs -d $CVROOT up -dP

# Because you are set ENV with CVSROOT, you can just do this
# cvs up -dP

rm -fR tiki/templates_c/%%*

# Need if you don't want anonymous can install in your site
rm -f tiki-install.php

then to exit vi :

escape> :> wq enter>

Make this script an executable:

chmod a+x tikicvs.sh enter>

ls and the tikicvs.sh should be there. Then all you need to do at the root shell is

./tikicvs.sh


--------

History

Information Version
Marc Laporte 11
View
Mose 10
View
Mose 9
View
Mose 8
View
Juzan Jean-Michel 7
View
Juzan Jean-Michel 6
View
Juzan Jean-Michel 5
View
Oliver Hertel 4
View
mike 3
View