Subversion Repositories HelenOS

Rev

Rev 3346 | Rev 3419 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3346 Rev 3373
Line 88... Line 88...
88
 
88
 
89
# Template stored `here-now' style, this generates all files needed
89
# Template stored `here-now' style, this generates all files needed
90
# for a new command according to arguments passed.
90
# for a new command according to arguments passed.
91
generate_code()
91
generate_code()
92
{
92
{
93
	echo "Creating ${OUTDIR}/${CMDNAME}.def ..."
93
	echo "Creating ${OUTDIR}/${CMDNAME}_def.h ..."
94
	cat << EOF > ${OUTDIR}/${CMDNAME}.def
94
	cat << EOF > ${OUTDIR}/${CMDNAME}_def.h
95
{
95
{
96
	"${CMDNAME}",
96
	"${CMDNAME}",
97
	"${CMDDESC}",
97
	"${CMDDESC}",
98
	&${CMDENTRY},
98
	&${CMDENTRY},
99
	&${HELPENTRY},
99
	&${HELPENTRY},
100
	${CMDRESTRICT}
100
	${CMDRESTRICT}
101
},
101
},
102
 
102
 
103
EOF
103
EOF
104
	[ -n "${CMDALIAS}" ] && cat << EOF >> ${OUTDIR}/${CMDNAME}.def
104
	[ -n "${CMDALIAS}" ] && cat << EOF >> ${OUTDIR}/${CMDNAME}_def.h
105
{
105
{
106
	"${CMDALIAS}",
106
	"${CMDALIAS}",
107
	NULL,
107
	NULL,
108
	&${CMDENTRY},
108
	&${CMDENTRY},
109
	&${HELPENTRY},
109
	&${HELPENTRY},