Now that the *_command_list.c files are no longer needed we may remove
this mode from command_util.sh. This makes quite a few headers of
the .cmd files unused, so these can be removed as well.
*_command_list.h
*_command_list.man
paraslash-git.tar.bz2
*_command_list.h
*_command_list.man
paraslash-git.tar.bz2
gcc-compat.h \
fade.c \
config.h \
gcc-compat.h \
fade.c \
config.h \
*_completion.h
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
*_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))))))))))))))))))))))))))
$(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 < $< >$@
%_command_list.h: %.cmd
@[ -z "$(Q)" ] || echo 'GEN $@'
$(Q) ./command_util.sh h < $< >$@
SF: afs.c aft.c attribute.c
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
---
SN: list of afs commands
TM: mood lyr img pl
---
-AT: audiod_command
-IN: list para sched audiod
SN: list of audiod commands
---
N: cycle
SN: list of audiod commands
---
N: cycle
read_header()
{
local key value i
read_header()
{
local key value i
BN:)
base_name="$value"
;;
BN:)
base_name="$value"
;;
- OF:)
- output_file="$value"
- array_name=${value%command_list}cmds
- ;;
SF:)
source_files="$value"
;;
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"
;;
SN:)
section_name="$value"
;;
template_members="$value"
esac
done
template_members="$value"
esac
done
- if test -z "$output_file"; then
- echo "header error" 1&>2
- exit 1
- fi
source_files="$t_source_files"
}
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='
'
com_header()
{
local array_members CR='
'
- echo "extern struct $array_type $array_name[];"
while : ; do
read_one_command
if test $ret -lt 0; then
while : ; do
read_one_command
if test $ret -lt 0; then
arg="$1"
shift
case "$arg" in
arg="$1"
shift
case "$arg" in
-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
SN: list of server commands
---
N: ff