Loading...
 
Skip to main content

History: TikiCommandLineCVS

Preview of version: 6

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 tiki

Getting the 1.7 RC1 branch :

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

cvs co -r release_eta_carinea_rc1 -d tiki-1.7rc1 tiki

It will create a new directory named tiki-1.7rc1/


-----

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't 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