web interface: sort descriptions like the form fields in get_info, cert_search
[openxpki.git] / www.openxpki.org / trunk / update_www_openxpki_org
blobebf9294cf96747edaa178b5136a250b9e5ae327a
1 #!/bin/sh
2 set -e
4 if [ ! -z "$1" ] && [ -d "$1" ]; then
5 target=$1;
6 else
7 target=/var/www/htdocs
8 fi
10 ## if you activate this then every run via cronjob creates an email
11 ## echo "Installing to target $target";
13 old=`pwd`
14 cd $target
16 ## Legacy problem: cvs folder is named doc, should be docs - so we make a link
18 if [ ! -L doc ] && [ ! -d doc ]; then
19 ln -s docs doc
20 fi;
22 ## update CVS
24 #svn checkout svn://svn.berlios.de/openxpki/www.openxpki.org/trunk/htdocs $target 2>/dev/null >/dev/null
25 if [ $DEBUG ]; then
26 CMD="svn checkout https://openxpki.svn.sourceforge.net/svnroot/openxpki/www.openxpki.org/trunk/htdocs $target"
27 echo Command: $CMD
28 `$CMD`
29 else
30 svn checkout https://openxpki.svn.sourceforge.net/svnroot/openxpki/www.openxpki.org/trunk/htdocs $target 2>/dev/null >/dev/null
32 # new syntax at sf:
33 cvs -z3 -d:pserver:anonymous@openca.cvs.sourceforge.net:/cvsroot/openca co -P doc >/dev/null 2>&1
35 ## copy stuff to htdocs area
37 ## create symlinks if necessary
38 # images for One Page HTML Guide
39 cd docs/guide/
40 rm -rf images
41 ln -s src/images
43 # legacy link
44 rm -rf html_chunked
45 ln -s html html_chunked
47 # provide .css for /docs/guide/openca-guide.html
48 # NB: link does not work here!
49 cp html/default.css .
51 # images for chunked html
52 cd html
53 rm -rf images
54 ln -s ../src/images
56 ## Update nightly snapshot
57 cd $target
58 ${old}/fetch.sh 2>/dev/null >/dev/null
60 cd $old
62 #echo "update succeeded"