ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/util/cf_sync_doc
Revision: 1.12
Committed: Mon Dec 24 05:03:19 2007 UTC (16 years, 5 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +2 -2 lines
Log Message:
make license more explicit

File Contents

# User Rev Content
1 elmex 1.1 #!/bin/sh
2 root 1.7 : ${CFDEV_ROOT:="../"}
3 elmex 1.1
4 elmex 1.9 if [ ! -e "$CFDEV_ROOT/server/ext/NPC_Dialogue.pm" ]; then
5 elmex 1.1 echo "Please make sure you set CFDEV_ROOT correctly!"
6     exit 1
7     fi
8    
9 root 1.3 cd "$CFDEV_ROOT" || exit 69
10    
11 root 1.2 umask 022
12 elmex 1.1 rm -r /tmp/cfwwwdoc/ 2>/dev/null
13     mkdir /tmp/cfwwwdoc/ /tmp/cfwwwdoc/development/ /tmp/cfwwwdoc/user/ 2>/dev/null
14    
15 root 1.3 pod() {
16 root 1.10 #pod2man "$1" | groff -Thtml -mandoc -P -b -P -l >"/tmp/cfwwwdoc/$2"
17 root 1.11 echo "$1"
18 root 1.10 pod2xhtml <"$1" >"/tmp/cfwwwdoc/$2" --css /pod.css
19 root 1.3 }
20    
21 elmex 1.4 pod server/lib/cf.pm development/cf.pm.html
22 elmex 1.6 pod server/pod/events.pod development/events.html
23     pod server/pod/extensions.pod development/extensions.html
24 elmex 1.9 pod server/pod/objects.pod development/objects.html
25     pod server/ext/NPC_Dialogue.pm development/NPC_Dialogue.pm.html
26     pod server/ext/Jeweler.pm development/Jeweler.pm.html
27     pod server/ext/cfplus.ext development/cfplus.ext.html
28     pod server/ext/map_lib.ext development/map_lib.html
29 root 1.12 pod gcrossedit/bin/gde development/gde_manual.html
30 elmex 1.5 for doc in CFPlus/pod/*.pod; do
31     pod $doc `perl -e 'local $_=$ARGV[0]; s#^.*\/([^\/.]+)\.pod$#user\/\1.html#; print' $doc`
32     done
33 elmex 1.1
34     # please don't do --delete, it will delete the .desc files!
35 root 1.12 rsync -avp /tmp/cfwwwdoc/. ruth:/var/www/www.deliantra.net/doc/. --exclude "*.desc" --delete