ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/util/cf_sync_doc
Revision: 1.9
Committed: Mon Dec 18 11:00:47 2006 UTC (17 years, 5 months ago) by elmex
Branch: MAIN
CVS Tags: rel-2_0, rel-2_1
Changes since 1.8: +6 -4 lines
Log Message:
updated cf_sync_doc to reflect the movement of the extensions to the
server tree. also added objects.pod and map_lib.ext to be put on the website too.

File Contents

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