TODO
NONE
aclocal.m4
-*_command_list.c
*_command_list.h
*_command_list.man
paraslash-git.tar.bz2
gcc-compat.h \
fade.c \
config.h \
- *_command_list.[ch] \
+ *_command_list.h \
*_completion.h
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
$(subst u,U,$(subst v,V,$(subst w,W,$(subst x,X,$(subst y,Y,\
$(subst z,Z,$1))))))))))))))))))))))))))
-%_command_list.c: %.cmd
- @[ -z "$(Q)" ] || echo 'GEN $@'
- $(Q) ./command_util.sh c < $< >$@
%_command_list.h: %.cmd
@[ -z "$(Q)" ] || echo 'GEN $@'
$(Q) ./command_util.sh h < $< >$@
BN: afs
-OF: afs_command_list
SF: afs.c aft.c attribute.c
-AT: server_command
-SI: osl regex
-IN: para error crypt sideband command string afh afs server list user_list
SN: list of afs commands
TM: mood lyr img pl
---
BN: audiod
-OF: audiod_command_list
SF: audiod_command.c
-AT: audiod_command
-IN: list para sched audiod
SN: list of audiod commands
---
N: cycle
#!/usr/bin/env bash
-
read_header()
{
local key value i
BN:)
base_name="$value"
;;
- OF:)
- output_file="$value"
- array_name=${value%command_list}cmds
- ;;
SF:)
source_files="$value"
;;
- AT:)
- array_type="$value"
- ;;
- SI:)
- for i in $value; do
- system_includes="$system_includes
-#include <$i.h>"
- done
- ;;
- IN:)
- for i in $value; do
- includes="$includes
-#include \"$i.h\""
- done
- includes="$includes
-#include \"$output_file.h\""
- ;;
SN:)
section_name="$value"
;;
template_members="$value"
esac
done
- if test -z "$output_file"; then
- echo "header error" 1&>2
- exit 1
- fi
}
read_one_command()
source_files="$t_source_files"
}
-com_c_file()
-{
- echo "$system_includes"
- echo "$includes"
- echo "struct $array_type $array_name[] = {"
- while : ; do
- read_one_command
- if test $ret -lt 0; then
- exit 1
- fi
- if test $ret -eq 0; then
- break
- fi
- if test $template -eq 0; then
- make_array_member
- printf "%s" "$result"
- continue
- fi
- template_loop make_array_member
- printf "%s" "$result"
- done
- echo '{.name = NULL}};'
-}
-
com_header()
{
local array_members CR='
'
- echo "extern struct $array_type $array_name[];"
while : ; do
read_one_command
if test $ret -lt 0; then
arg="$1"
shift
case "$arg" in
- "c")
- com_c_file
- ;;
"h")
com_header
;;
BN: server
-OF: server_command_list
SF: command.c
-AT: server_command
-SI: osl regex
-IN: para error crypt sideband command string afh afs server list user_list
SN: list of server commands
---
N: ff