Mercurial > ecos
annotate acsupport/missing @ 2257:467fd46113f3
* src/fs/fileio.c (do_list): Use getcwd for current directory,
rather than "." which may not be implemented in the FS.
* src/parse.c (redboot_exec): Conditionalise use of
__mem_fault_handler to only be when stubs are included.
(error_handler): Ditto for this function.
* src/main.c (cyg_start): Conditionalise use of
__mem_fault_handler to only be when stubs are included.
(do_go): Ditto.
(error_handler): Ditto for this function.
* src/fs/fileio.c (do_mkdir, do_deldir, do_del, do_write): Added
some extra argument checking to these functions.
* src/fs/fileio.c (do_mount): Only support -f with "legacy" flash
block devices.
Clear mount table on failure.
(do_move): Silence rename undefined warning.
(do_write): Silence warnings.
(do_info): Support longer device names.
* src/decompress.c (ZLIB_COMPRESSION_OVERHEAD):
Increase substantially if jffs2 is present.
* src/fs/fileio.c: Fixed some bugs in handling of mounts. The
strings used in the mount table must be copied, otherwise the
mount table is corrupted by later commands. Also toughened up some
error testing.
* doc/redboot_cmds.sgml: Added file mode documentation to load
command.
* doc/redboot_cmds.sgml: Added documentation of filesystem access
commands.
* src/fs/fileio.c (do_write): Added O_TRUNC to the open call to
ensure that the file is resized to fit the new data.
* src/fs/fileio.c: Significantly reorganized to present an
interface similar to the fis commands. Added a variety of command
to manipulate files and directories in a filesystem.
* src/parse.c: Added redboot_exec() to provide an internal
interface for executing RedBoot commands. Added err_printf() which
allows an error message to be printed before longjumping out to an
enclosing call to redboot_exec(). Where redboot_exec() is not
involved, it just behaves like diag_printf().
* src/main.c: Removed unnecessary delay during startup. Changed
diag_printf() in do_go() into err_printf().
* src/load.c: Changed some calls to diag_printf() to err_printf().
* src/net/net_io.c: Changed init priority to RedBoot_INIT_NET.
* include/redboot.h: Added some extra initialization
priorities. Added prototypes for redboot_exec() and err_printf().
| author | jlarmour |
|---|---|
| date | Thu, 20 Jul 2006 20:27:47 +0000 |
| parents | f58bc1b2c2bc |
| children | a2fb80f5315f |
| rev | line source |
|---|---|
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
1 #! /bin/sh |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
2 # Common stub for a few missing GNU programs while installing. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
3 # Copyright (C) 1996, 1997 Free Software Foundation, Inc. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
4 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
5 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
6 # This program is free software; you can redistribute it and/or modify |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
7 # it under the terms of the GNU General Public License as published by |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
8 # the Free Software Foundation; either version 2, or (at your option) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
9 # any later version. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
10 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
11 # This program is distributed in the hope that it will be useful, |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
14 # GNU General Public License for more details. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
15 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
16 # You should have received a copy of the GNU General Public License |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
17 # along with this program; if not, write to the Free Software |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
19 # 02111-1307, USA. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
20 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
21 if test $# -eq 0; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
22 echo 1>&2 "Try \`$0 --help' for more information" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
23 exit 1 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
24 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
25 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
26 case "$1" in |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
27 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
28 -h|--h|--he|--hel|--help) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
29 echo "\ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
30 $0 [OPTION]... PROGRAM [ARGUMENT]... |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
31 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
32 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
33 error status if there is no known handling for PROGRAM. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
34 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
35 Options: |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
36 -h, --help display this help and exit |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
37 -v, --version output version information and exit |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
38 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
39 Supported PROGRAM values: |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
40 aclocal touch file \`aclocal.m4' |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
41 autoconf touch file \`configure' |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
42 autoheader touch file \`config.h.in' |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
43 automake touch all \`Makefile.in' files |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
44 bison create \`y.tab.[ch]', if possible, from existing .[ch] |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
45 flex create \`lex.yy.c', if possible, from existing .c |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
46 lex create \`lex.yy.c', if possible, from existing .c |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
47 makeinfo touch the output file |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
48 yacc create \`y.tab.[ch]', if possible, from existing .[ch]" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
49 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
50 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
51 -v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
52 echo "missing - GNU libit 0.0" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
53 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
54 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
55 -*) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
56 echo 1>&2 "$0: Unknown \`$1' option" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
57 echo 1>&2 "Try \`$0 --help' for more information" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
58 exit 1 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
59 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
60 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
61 aclocal) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
62 echo 1>&2 "\ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
63 WARNING: \`$1' is missing on your system. You should only need it if |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
64 you modified \`acinclude.m4' or \`configure.in'. You might want |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
65 to install the \`Automake' and \`Perl' packages. Grab them from |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
66 any GNU archive site." |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
67 touch aclocal.m4 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
68 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
69 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
70 autoconf) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
71 echo 1>&2 "\ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
72 WARNING: \`$1' is missing on your system. You should only need it if |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
73 you modified \`configure.in'. You might want to install the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
74 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
75 archive site." |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
76 touch configure |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
77 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
78 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
79 autoheader) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
80 echo 1>&2 "\ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
81 WARNING: \`$1' is missing on your system. You should only need it if |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
82 you modified \`acconfig.h' or \`configure.in'. You might want |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
83 to install the \`Autoconf' and \`GNU m4' packages. Grab them |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
84 from any GNU archive site." |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
85 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in` |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
86 if test -z "$files"; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
87 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in` |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
88 test -z "$files" || files="$files.in" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
89 else |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
90 files=`echo "$files" | sed -e 's/:/ /g'` |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
91 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
92 test -z "$files" && files="config.h.in" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
93 touch $files |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
94 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
95 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
96 automake) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
97 echo 1>&2 "\ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
98 WARNING: \`$1' is missing on your system. You should only need it if |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
99 you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
100 You might want to install the \`Automake' and \`Perl' packages. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
101 Grab them from any GNU archive site." |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
102 find . -type f -name Makefile.am -print \ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
103 | sed 's/^\(.*\).am$/touch \1.in/' \ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
104 | sh |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
105 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
106 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
107 bison|yacc) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
108 echo 1>&2 "\ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
109 WARNING: \`$1' is missing on your system. You should only need it if |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
110 you modified a \`.y' file. You may need the \`Bison' package |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
111 in order for those modifications to take effect. You can get |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
112 \`Bison' from any GNU archive site." |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
113 rm -f y.tab.c y.tab.h |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
114 if [ $# -ne 1 ]; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
115 eval LASTARG="\${$#}" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
116 case "$LASTARG" in |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
117 *.y) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
118 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
119 if [ -f "$SRCFILE" ]; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
120 cp "$SRCFILE" y.tab.c |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
121 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
122 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
123 if [ -f "$SRCFILE" ]; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
124 cp "$SRCFILE" y.tab.h |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
125 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
126 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
127 esac |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
128 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
129 if [ ! -f y.tab.h ]; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
130 echo >y.tab.h |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
131 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
132 if [ ! -f y.tab.c ]; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
133 echo 'main() { return 0; }' >y.tab.c |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
134 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
135 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
136 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
137 lex|flex) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
138 echo 1>&2 "\ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
139 WARNING: \`$1' is missing on your system. You should only need it if |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
140 you modified a \`.l' file. You may need the \`Flex' package |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
141 in order for those modifications to take effect. You can get |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
142 \`Flex' from any GNU archive site." |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
143 rm -f lex.yy.c |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
144 if [ $# -ne 1 ]; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
145 eval LASTARG="\${$#}" |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
146 case "$LASTARG" in |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
147 *.l) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
148 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
149 if [ -f "$SRCFILE" ]; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
150 cp "$SRCFILE" lex.yy.c |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
151 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
152 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
153 esac |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
154 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
155 if [ ! -f lex.yy.c ]; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
156 echo 'main() { return 0; }' >lex.yy.c |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
157 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
158 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
159 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
160 makeinfo) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
161 echo 1>&2 "\ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
162 WARNING: \`$1' is missing on your system. You should only need it if |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
163 you modified a \`.texi' or \`.texinfo' file, or any other file |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
164 indirectly affecting the aspect of the manual. The spurious |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
165 call might also be the consequence of using a buggy \`make' (AIX, |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
166 DU, IRIX). You might want to install the \`Texinfo' package or |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
167 the \`GNU make' package. Grab either from any GNU archive site." |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
168 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
169 if test -z "$file"; then |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
170 file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
171 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
172 fi |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
173 touch $file |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
174 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
175 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
176 *) |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
177 echo 1>&2 "\ |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
178 WARNING: \`$1' is needed, and you do not seem to have it handy on your |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
179 system. You might have modified some files without having the |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
180 proper tools for further handling them. Check the \`README' file, |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
181 it often tells you about the needed prerequirements for installing |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
182 this package. You may also peek at any GNU archive site, in case |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
183 some other package would contain this missing \`$1' program." |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
184 exit 1 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
185 ;; |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
186 esac |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
187 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
diff
changeset
|
188 exit 0 |
