mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
resolve/remove USAGE_LICENSE macros; remove repetitive (c) strings
This takes another small step towards disentangling the build system from the old AT&T environment. The USAGE_LICENSE macros with author and copyright information, which was formerly generated dynamically for each file from a database, are eliminated and the copyright/author information is instead inserted into the AST getopt usage strings directly. Repetitive license/copyright information is also removed from the getopt strings in the builtin commands (src/lib/libcmd/*.c and src/cmd/ksh93/data/builtins.c). There's no need to include 55 identical license/copyright strings in the ksh binary; one (in the main ksh getopt string, shown by ksh --man) ought to be enough! This makes the ksh binary about 10k smaller. It does mean that something like 'enum --author', 'typeset --license' or 'shift --copyright' will now not show those notices for those builtins, but I doubt anyone will care.
This commit is contained in:
parent
66e1d44642
commit
ede479967f
65 changed files with 236 additions and 223 deletions
|
|
@ -83,7 +83,7 @@ make install
|
|||
prev pty.c
|
||||
setv CMD_STANDALONE -DCMD_STANDALONE="b_pty"
|
||||
setv LICENSE -DLICENSE="since=2001,author=gsf+dgk"
|
||||
exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""builtin"\" -D_PACKAGE_ast -DCMD_STANDALONE=b_pty -DUSAGE_LICENSE=\""[-author?Glenn Fowler <gsf@research.att.com>][-author?David Korn <dgk@research.att.com>][-copyright?Copyright (c) 2001-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?builtin]"\" -c pty.c
|
||||
exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""builtin"\" -D_PACKAGE_ast -DCMD_STANDALONE=b_pty -c pty.c
|
||||
done pty.o generated
|
||||
bind -lutil dontcare
|
||||
setv CMD_STANDALONE -DCMD_STANDALONE="b_pty"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/***********************************************************************
|
||||
* *
|
||||
* This software is part of the ast package *
|
||||
* Copyright (c) 1992-2012 AT&T Intellectual Property *
|
||||
* Copyright (c) 1992-2013 AT&T Intellectual Property *
|
||||
* and is licensed under the *
|
||||
* Eclipse Public License, Version 1.0 *
|
||||
* by AT&T Intellectual Property *
|
||||
|
|
@ -21,8 +21,12 @@
|
|||
#pragma prototyped
|
||||
|
||||
static const char usage[] =
|
||||
"[-?\n@(#)pty (AT&T Research) 2012-06-11\n]"
|
||||
USAGE_LICENSE
|
||||
"[-?\n@(#)pty (AT&T Research) 2013-05-22\n]"
|
||||
"[-author?Glenn Fowler <gsf@research.att.com>]"
|
||||
"[-author?David Korn <dgk@research.att.com>]"
|
||||
"[-copyright?Copyright (c) 2001-2013 AT&T Intellectual Property]"
|
||||
"[-license?http://www.eclipse.org/org/documents/epl-v10.html]"
|
||||
"[--catalog?builtin]"
|
||||
"[+NAME?pty - create pseudo terminal and run command]"
|
||||
"[+DESCRIPTION?\bpty\b creates a pseudo pty and then runs \bcommand\b "
|
||||
"with arguments given by \aarg\a and the standard input, standard "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue