ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/util/cf_sync_doc
Revision: 1.4
Committed: Thu Aug 31 22:37:19 2006 UTC (20 years, 1 month ago) by elmex
Branch: MAIN
Changes since 1.3: +3 -1 lines
Log Message:
added some documentation

File Contents

# User Rev Content
1 elmex 1.1 #!/bin/sh
2     : ${CFDEV_ROOT:="./"}
3    
4     if [ ! -e "$CFDEV_ROOT/maps/perl/NPC_Dialogue.pm" ]; then
5     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     pod2man "$1" | groff -Thtml -mandoc -P -b -P -l >"/tmp/cfwwwdoc/$2"
17     }
18    
19 elmex 1.4 pod server/lib/cf.pm development/cf.pm.html
20     pod server/doc/events.pod development/events.html
21 root 1.3 pod maps/perl/NPC_Dialogue.pm development/NPC_Dialogue.html
22     pod gcrossedit/bin/gce development/gce_manual.html
23     pod CFPlus/pod/skill_help.pod user/skill_help.html
24     pod CFPlus/pod/command_help.pod user/command_help.html
25 elmex 1.4 pod server/doc/jeweler_skill.pod user/jeweler_skill.html
26 elmex 1.1
27     # please don't do --delete, it will delete the .desc files!
28 root 1.3 rsync -avpP /tmp/cfwwwdoc/. ruth:/var/www/cf.schmorp.de/doc/. --exclude "*.desc" --delete