summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-19 08:47:00 -0300
committershennetsind <ind@henn.et>2013-06-19 08:47:00 -0300
commit75c34fa8b87126aaf2b998ef429efe253ce5d105 (patch)
tree8e0d1ccd07905b7c6212ef68e2d270b5edba9d83 /tools
parent1edc31980be653e6482e4920862ac5d6ab0dd916 (diff)
parentbd95eccf047bda9d72abcea0724ad34b31131ab0 (diff)
downloadhercules-75c34fa8b87126aaf2b998ef429efe253ce5d105.tar.gz
hercules-75c34fa8b87126aaf2b998ef429efe253ce5d105.tar.bz2
hercules-75c34fa8b87126aaf2b998ef429efe253ce5d105.tar.xz
hercules-75c34fa8b87126aaf2b998ef429efe253ce5d105.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check-doc8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/check-doc b/tools/check-doc
index 4a5dccc88..4b283fcea 100755
--- a/tools/check-doc
+++ b/tools/check-doc
@@ -3,26 +3,26 @@
# modified by lighta
case $1 in
- 'script')
+ 'script')
#find which script commands are missing from doc/script_commands.txt
echo "Missing script documentation for function :"
awk '/BUILDIN_DEF\(.*\),/ {b=match($0,"BUILDIN_DEF(.*),");c=match($0,",");print substr($0,b+12,c-b-12);}' ../src/map/script.c | xargs -I{} sh -c '! grep -Lq {} ../doc/script_commands.txt && echo {}'
awk '/BUILDIN_DEF2\(.*\),/ {b=match($0,"BUILDIN_DEF2(.*),");c=match($0,",");d=match($0 ,"\",\"");print substr($0,c+2,d-c-2);}' ../src/map/script.c | xargs -I{} sh -c '! grep -Lq {} ../doc/script_commands.txt && echo {}'
;;
- 'atc')
+ 'atc')
#find which atcommands are missing from doc/atcommands.txt
echo "Missing atcommand documentation for function :"
awk '/ACMD_DEF\(.*\),/ {b=match($0,"ACMD_DEF(.*),");c=match($0,",");print substr($0,b+9,c-b-10);}' ../src/map/atcommand.c | xargs -I{} sh -c '! grep -Lq {} ../doc/atcommands.txt && echo {}'
awk '/ACMD_DEF2\(.*\),/ {b=match($0,"ACMD_DEF2(.*),");c=match($0,",");print substr($0,b+10,c-b-10);}' ../src/map/atcommand.c | xargs -I{} sh -c '! grep -Lq {} ../doc/atcommands.txt && echo {}'
;;
- 'both')
+ 'both')
$0 script
$0 atc
;;
*)
- echo "Usage: check-doc { script | atc | both }"
+ echo "Usage: check-doc { script | atc | both }"
;;
esac