Parent Directory | Revision Log
import files
1 | #! /bin/sh |
2 | IFS="()," |
3 | function print_defs |
4 | { |
5 | type=$1 |
6 | while read a1 a2 a3 |
7 | do |
8 | case $a1 in |
9 | *2) |
10 | id=$(($a2)) |
11 | name=$a3 |
12 | ;; |
13 | *) |
14 | name=$a2 |
15 | esac |
16 | printf "%s%s 0x%x\n" $type $name $id |
17 | id=$((id+1)) |
18 | done |
19 | } |
20 | dir=$0 |
21 | dir=${dir%/*} |
22 | dir=$dir/../ |
23 | id=0 |
24 | grep ^ITEM $dir/item_def.h | print_defs type_ |
25 | id=0 |
26 | grep ^ATTR $dir/attr_def.h | print_defs attr_ |
Name | Value |
---|---|
svn:executable | * |
Visit the ZANavi Wiki |