Update of /cvsroot/winbash/winbash/support
In directory usw-pr-cvs1:/tmp/cvs-serv381/support
Modified Files:
FAQ PORTING SYMLINKS bash.xbm bashbug.sh cat-s clone-bash
cppmagic fixlinks getcppsyms.c inpath install.sh mkdirs
mklinks mkmachtype mksysdefs printenv recho.c srcdir
Log Message:
Fixed more cr/lf problems.
Index: FAQ
===================================================================
RCS file: /cvsroot/winbash/winbash/support/FAQ,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- FAQ 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ FAQ 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,202 +1,202 @@
-This Frequently Asked Questions file is edited in -*- indented-text -*- mode.
-
-If you are viewing this text in a GNU Emacs Buffer, you can type "M-2 C-x $" to
-get an overview of just the questions. Then, when you want to look at the text
-of the answers, just type "C-x $".
-
-To search for a question numbered XXX, type "M-C-s ^XXX:", followed by a C-r if
-that doesn't work, then type ESC to end the search.
-
-1: How do I convert all of my Csh aliases over to Bash aliases?
- Bash uses a different syntax to support aliases than Csh does. The
- details can be found in the documentation. We have provided a shell
- script which does most of the work of conversion for you; this
- script can be found in ./examples/alias-conv.sh. Here is how you
- use it:
-
- Start Csh in the normal way for you. (e.g., "csh")
-
- Pipe the output of "alias" through "alias-conv.sh", saving the
- results into "bash_aliases":
-
- alias | alias-conv.sh >.bash_aliases
-
- Edit "bash_aliases" carefully reading through any created
- functions. You will need to change the names of Csh specific
- variables (like $cwd) to the Bash equivalents (like $PWD). You
- will also need to remove recursive references to commands which
- are defined as functions. For example, the Csh alias:
-
- alias cd 'cd \!*;echo $cwd'
-
- is converted to the Bash function:
-
- cd ()
- {
- cd $*;
- echo $cwd
- }
-
- This function contains a self-pointing reference to "cd", which
- should be changed to use the "builtin" version. It also uses
- the Csh variable `$cwd' which has an equivalent in Bash.
- Precede the recursive reference with the word "builtin", and
- change the name of the variable:
-
- cd () { builtin cd $*; echo $PWD }
-
- Merge the edited file into your ~/.bashrc.
-
-2: Background jobs have staggered output, as if there was no CR before the LF.
- This is a result of bash using the BSD-style tty driver on Ultrix. The BSD
- driver ties input and output carriage return translation together with the
- CRMOD bit. (The CRMOD bit causes CR->LF translation on input and LF->CRLF
- translation on output.) Unless the CRMOD bit is cleared, it is impossible
- to get a literal ^M in an input line. Unfortunately, one of the effects of
- clearing it is the loss of output processing you've observed.
-
- The Ultrix Posix-style tty driver can't be used because it has serious
- problems with losing typeahead when ICANON is switched on and off. These
- characters seem to reappear later without warning, usually when a
- program that uses the BSD-style ioctls turns on CBREAK (e.g., `more').
-
-3: Bash's "test" different from "/bin/test"? ([ ! x -o x ] -> false)
- Bash's builtin "test" implements the Posix.2 spec, which can be
- summarized as follows (the wording is due to David Korn):
-
- Here is the set of rules for processing test arguments.
-
- 0 Args: False
- 1 Arg: True iff argument is not null.
- 2 Args: If first arg is !, True iff second argument is null.
- If first argument is unary, then true if unary test is true
- Otherwise error.
- 3 Args: If second argument is a binary operator, do binary test of $1 $3
- If first argument is !, negate two argument test of $2 $3
- Otherwise error.
- 4 Args: If first argument is !, negate three argument test of $2 $3 $4.
- Otherwise unspecified
- 5 or more Args: unspecified. (Historical shells would used their
- current algorithm).
-
- The operators -a and -o are considered binary operators for the purpose
- of the 3 Arg case.
-
- As you can see, the test becomes (not (x or x)), which is false.
-
-4: Completion listings can differ from `ls' in the number of columns output.
- This can happen because `ls' calls stat () on every file before
- listing the output, while GNU Readline only calls stat () on the
- files when they are being printed. This means that `ls' knows how
- many characters will be added to each filename in advance, and can
- accurately calculate the maximum length, while Bash must assume that
- each filename will have characters added to it.
-
-5: Bash crashes when I do "cd".
- If you have `cd' defined as a function, it is likely that the
- function is recursively calling itself. See the answer to question
- 1 above.
-
-6: Why does Bash sometimes say "Broken pipe"?
- If a sequence of commands appear in a pipeline, and one of the
- reading commands finishes before the writer has finished, the writer
- receives a SIGPIPE signal. Many other shells special-case SIGPIPE as
- an exit status in the pipeline and do not report it. For example,
- in:
-
- ps -aux | head
-
- `head' can finish before `ps' writes all of its output. In that case,
- Bash will print `Broken pipe' to stderr on behalf of the `ps'
- command.
-
-7: How can I use `!' to reinvoke a command starting with a digit?
- If you had issued a command such as `8086engine foo', and then at a
- later time wished to reinvoke the command, typing `!80' would probably
- not work since Bash would think you meant the 80'th command in the
- history, not the command starting with `80'. You can type `!?80',
- which says to re-execute the most recent command containing `80'.
-
-Questions About Input Line Editing:
-
-1: What do things like this mean: C-h, M-C-a, RET, etc.?
-
- C-a means press the "a" key while holding down the "Control" key. The
- ASCII code this sends will generally be the value that would be sent by
- pressing just "a" minus 96 or 64. Either way it will be a number from 0
- to 31.
-
- M-a means press the "a" key while holding down the "Meta" key. The
- ASCII code this sends is the sum of the ASCII code that would be sent by
- pressing just "a" and 128.
-
- M-C-a means press the "a" key while holding down both the "Control" key
- and the "Meta" key. C-M-a is a synonym for M-C-a.
-
- * RET means press the "Return" key. RET is the same as C-m. This sends
- ASCII code 13.
-
- * LFD means press the "Linefeed" key. LFD is also the same as C-j. This
- sends ASCII code 10. Under Unix, ASCII code 10 is more often called
- "Newline".
-
- * DEL means press the "Delete" key. DEL is the same as C-?. This sends
- ASCII code 127. (WARNING: It is a misnomer to call C-? a "control" key,
- since 127 has both bits 6 and 7 turned ON, and the rule for control keys
- is that they have 6 and 7 turned OFF. Also, on very few keyboards does
- Control-? generate ASCII code 127. In fact, Control-? (which is
- actually Control-Shift-/) is more likely to generate C-_, ASCII code
- 31!)
-
- * ESC means press the "Escape" key. ESC is the same as C-[. This sends
- ASCII code 27.
-
- * SPC means press the "Space" key. This send ASCII code 32.
-
- * TAB means press the "Tab" key. TAB is the same as C-i. This send ASCII
- code 9.
-
- For C-@ and C-^, usually you don't have to hold down the shift key and you
- can type Control-2 or Control-6 instead. For C-_, you may have to hold
- down the shift key, typing Control-Shift-Hyphen. C-@ can often be
- generated by typing Control-Space. C-@ is often called the NUL character,
- and has ASCII value 0. C-_ can often be generated by typing Control-7 or
- Control-/. Try Control with all of the digits on your keyboard to see
- what gets generated.
-
- To read more about this online, type "C-h i m emacs RET m characters
- RET", and also "C-h i m emacs RET m keys RET".
-
-2: What do you mean when you write things like this: type "ESC a"?
-
- I will enclose key sequences that are longer than one key inside double
- quotes. These notations refer to single key strokes (some with
- modifiers):
-
- C-x, M-x, M-C-x
- RET, LFD, DEL, ESC, SPC, TAB
-
- I separate these from other keys within double quotes by spaces. Any
- real spaces that I write inside double quotes can be ignored, only SPC
- means press the space key. All other characters within double quotes
- represent single keys (some shifted).
-
-3: What if I don't have a Meta key?
-
- Instead of typing M-a, you can type "ESC a" instead. In fact, Emacs
- converts M-a internally into "ESC a" anyway (depending on the value of
- meta-prefix-char).
-
-4: What if I don't have an Escape key?
-
- Type C-[ instead. This should send ASCII code 27 just like an Escape
- key would.
-
-5: What does "M-x command" mean?
-
- "M-x command" means type M-x, then type the name of the command, then
-
-
-Local Variables:
-eval: (set-selective-display 2)
-End:
+This Frequently Asked Questions file is edited in -*- indented-text -*- mode.
+
+If you are viewing this text in a GNU Emacs Buffer, you can type "M-2 C-x $" to
+get an overview of just the questions. Then, when you want to look at the text
+of the answers, just type "C-x $".
+
+To search for a question numbered XXX, type "M-C-s ^XXX:", followed by a C-r if
+that doesn't work, then type ESC to end the search.
+
+1: How do I convert all of my Csh aliases over to Bash aliases?
+ Bash uses a different syntax to support aliases than Csh does. The
+ details can be found in the documentation. We have provided a shell
+ script which does most of the work of conversion for you; this
+ script can be found in ./examples/alias-conv.sh. Here is how you
+ use it:
+
+ Start Csh in the normal way for you. (e.g., "csh")
+
+ Pipe the output of "alias" through "alias-conv.sh", saving the
+ results into "bash_aliases":
+
+ alias | alias-conv.sh >.bash_aliases
+
+ Edit "bash_aliases" carefully reading through any created
+ functions. You will need to change the names of Csh specific
+ variables (like $cwd) to the Bash equivalents (like $PWD). You
+ will also need to remove recursive references to commands which
+ are defined as functions. For example, the Csh alias:
+
+ alias cd 'cd \!*;echo $cwd'
+
+ is converted to the Bash function:
+
+ cd ()
+ {
+ cd $*;
+ echo $cwd
+ }
+
+ This function contains a self-pointing reference to "cd", which
+ should be changed to use the "builtin" version. It also uses
+ the Csh variable `$cwd' which has an equivalent in Bash.
+ Precede the recursive reference with the word "builtin", and
+ change the name of the variable:
+
+ cd () { builtin cd $*; echo $PWD }
+
+ Merge the edited file into your ~/.bashrc.
+
+2: Background jobs have staggered output, as if there was no CR before the LF.
+ This is a result of bash using the BSD-style tty driver on Ultrix. The BSD
+ driver ties input and output carriage return translation together with the
+ CRMOD bit. (The CRMOD bit causes CR->LF translation on input and LF->CRLF
+ translation on output.) Unless the CRMOD bit is cleared, it is impossible
+ to get a literal ^M in an input line. Unfortunately, one of the effects of
+ clearing it is the loss of output processing you've observed.
+
+ The Ultrix Posix-style tty driver can't be used because it has serious
+ problems with losing typeahead when ICANON is switched on and off. These
+ characters seem to reappear later without warning, usually when a
+ program that uses the BSD-style ioctls turns on CBREAK (e.g., `more').
+
+3: Bash's "test" different from "/bin/test"? ([ ! x -o x ] -> false)
+ Bash's builtin "test" implements the Posix.2 spec, which can be
+ summarized as follows (the wording is due to David Korn):
+
+ Here is the set of rules for processing test arguments.
+
+ 0 Args: False
+ 1 Arg: True iff argument is not null.
+ 2 Args: If first arg is !, True iff second argument is null.
+ If first argument is unary, then true if unary test is true
+ Otherwise error.
+ 3 Args: If second argument is a binary operator, do binary test of $1 $3
+ If first argument is !, negate two argument test of $2 $3
+ Otherwise error.
+ 4 Args: If first argument is !, negate three argument test of $2 $3 $4.
+ Otherwise unspecified
+ 5 or more Args: unspecified. (Historical shells would used their
+ current algorithm).
+
+ The operators -a and -o are considered binary operators for the purpose
+ of the 3 Arg case.
+
+ As you can see, the test becomes (not (x or x)), which is false.
+
+4: Completion listings can differ from `ls' in the number of columns output.
+ This can happen because `ls' calls stat () on every file before
+ listing the output, while GNU Readline only calls stat () on the
+ files when they are being printed. This means that `ls' knows how
+ many characters will be added to each filename in advance, and can
+ accurately calculate the maximum length, while Bash must assume that
+ each filename will have characters added to it.
+
+5: Bash crashes when I do "cd".
+ If you have `cd' defined as a function, it is likely that the
+ function is recursively calling itself. See the answer to question
+ 1 above.
+
+6: Why does Bash sometimes say "Broken pipe"?
+ If a sequence of commands appear in a pipeline, and one of the
+ reading commands finishes before the writer has finished, the writer
+ receives a SIGPIPE signal. Many other shells special-case SIGPIPE as
+ an exit status in the pipeline and do not report it. For example,
+ in:
+
+ ps -aux | head
+
+ `head' can finish before `ps' writes all of its output. In that case,
+ Bash will print `Broken pipe' to stderr on behalf of the `ps'
+ command.
+
+7: How can I use `!' to reinvoke a command starting with a digit?
+ If you had issued a command such as `8086engine foo', and then at a
+ later time wished to reinvoke the command, typing `!80' would probably
+ not work since Bash would think you meant the 80'th command in the
+ history, not the command starting with `80'. You can type `!?80',
+ which says to re-execute the most recent command containing `80'.
+
+Questions About Input Line Editing:
+
+1: What do things like this mean: C-h, M-C-a, RET, etc.?
+
+ C-a means press the "a" key while holding down the "Control" key. The
+ ASCII code this sends will generally be the value that would be sent by
+ pressing just "a" minus 96 or 64. Either way it will be a number from 0
+ to 31.
+
+ M-a means press the "a" key while holding down the "Meta" key. The
+ ASCII code this sends is the sum of the ASCII code that would be sent by
+ pressing just "a" and 128.
+
+ M-C-a means press the "a" key while holding down both the "Control" key
+ and the "Meta" key. C-M-a is a synonym for M-C-a.
+
+ * RET means press the "Return" key. RET is the same as C-m. This sends
+ ASCII code 13.
+
+ * LFD means press the "Linefeed" key. LFD is also the same as C-j. This
+ sends ASCII code 10. Under Unix, ASCII code 10 is more often called
+ "Newline".
+
+ * DEL means press the "Delete" key. DEL is the same as C-?. This sends
+ ASCII code 127. (WARNING: It is a misnomer to call C-? a "control" key,
+ since 127 has both bits 6 and 7 turned ON, and the rule for control keys
+ is that they have 6 and 7 turned OFF. Also, on very few keyboards does
+ Control-? generate ASCII code 127. In fact, Control-? (which is
+ actually Control-Shift-/) is more likely to generate C-_, ASCII code
+ 31!)
+
+ * ESC means press the "Escape" key. ESC is the same as C-[. This sends
+ ASCII code 27.
+
+ * SPC means press the "Space" key. This send ASCII code 32.
+
+ * TAB means press the "Tab" key. TAB is the same as C-i. This send ASCII
+ code 9.
+
+ For C-@ and C-^, usually you don't have to hold down the shift key and you
+ can type Control-2 or Control-6 instead. For C-_, you may have to hold
+ down the shift key, typing Control-Shift-Hyphen. C-@ can often be
+ generated by typing Control-Space. C-@ is often called the NUL character,
+ and has ASCII value 0. C-_ can often be generated by typing Control-7 or
+ Control-/. Try Control with all of the digits on your keyboard to see
+ what gets generated.
+
+ To read more about this online, type "C-h i m emacs RET m characters
+ RET", and also "C-h i m emacs RET m keys RET".
+
+2: What do you mean when you write things like this: type "ESC a"?
+
+ I will enclose key sequences that are longer than one key inside double
+ quotes. These notations refer to single key strokes (some with
+ modifiers):
+
+ C-x, M-x, M-C-x
+ RET, LFD, DEL, ESC, SPC, TAB
+
+ I separate these from other keys within double quotes by spaces. Any
+ real spaces that I write inside double quotes can be ignored, only SPC
+ means press the space key. All other characters within double quotes
+ represent single keys (some shifted).
+
+3: What if I don't have a Meta key?
+
+ Instead of typing M-a, you can type "ESC a" instead. In fact, Emacs
+ converts M-a internally into "ESC a" anyway (depending on the value of
+ meta-prefix-char).
+
+4: What if I don't have an Escape key?
+
+ Type C-[ instead. This should send ASCII code 27 just like an Escape
+ key would.
+
+5: What does "M-x command" mean?
+
+ "M-x command" means type M-x, then type the name of the command, then
+
+
+Local Variables:
+eval: (set-selective-display 2)
+End:
Index: PORTING
===================================================================
RCS file: /cvsroot/winbash/winbash/support/PORTING,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- PORTING 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ PORTING 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,22 +1,22 @@
-if _mkfifo cannot be found, add "-DMKFIFO_MISSING" to SYSDEP_CFLAGS in
-your machine's entry in machines.h.
-
-If bash compiles, but hangs when executing a non-builtin, there is a
-problem with the defines in your /usr/include/sys/wait.h. If you
-don't have one, there is a problem in our defines. At any rate,
-perhaps you have a partially POSIX system, instead of a fully
-operational one. Try defining _POSIX_SOURCE just before the inclusion
-of <sys/wait.h> in jobs.h, and then undefining it immediately after
-the inclusion.
-
-Finding out if your system has something (like setpgid, for example)
-You can always do "nm -o /lib/*.a | grep setpgid". If an entry for
-the function appears, you have it, and you might have to link with
-that library by adding "#defined REQUIRED_LIBRARIES -lfoo" to the
-entry in machines.h.
-
-If you seem to be going around in circles, and they are related to
-job control and posixness, try #undef HAVE_UNISTD_H in the entry for
-your machine in machines.h. This can work by keeping unistd.h from
-defining _POSIX_VERSION, which in turn prevents bash from assuming
-full Posix semantics.
+if _mkfifo cannot be found, add "-DMKFIFO_MISSING" to SYSDEP_CFLAGS in
+your machine's entry in machines.h.
+
+If bash compiles, but hangs when executing a non-builtin, there is a
+problem with the defines in your /usr/include/sys/wait.h. If you
+don't have one, there is a problem in our defines. At any rate,
+perhaps you have a partially POSIX system, instead of a fully
+operational one. Try defining _POSIX_SOURCE just before the inclusion
+of <sys/wait.h> in jobs.h, and then undefining it immediately after
+the inclusion.
+
+Finding out if your system has something (like setpgid, for example)
+You can always do "nm -o /lib/*.a | grep setpgid". If an entry for
+the function appears, you have it, and you might have to link with
+that library by adding "#defined REQUIRED_LIBRARIES -lfoo" to the
+entry in machines.h.
+
+If you seem to be going around in circles, and they are related to
+job control and posixness, try #undef HAVE_UNISTD_H in the entry for
+your machine in machines.h. This can work by keeping unistd.h from
+defining _POSIX_VERSION, which in turn prevents bash from assuming
+full Posix semantics.
Index: SYMLINKS
===================================================================
RCS file: /cvsroot/winbash/winbash/support/SYMLINKS,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- SYMLINKS 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ SYMLINKS 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,23 +1,23 @@
-#
-# symlink map for bash source tree
-#
-# link name link target
-#
-lib/readline/doc/texindex.c ../../doc-support/texindex.c
-#
-lib/readline/tilde.c ../tilde/tilde.c
-lib/readline/tilde.h ../tilde/tilde.h
-lib/readline/posixstat.h ../posixheaders/posixstat.h
-lib/readline/ansi_stdlib.h ../posixheaders/ansi_stdlib.h
-lib/readline/memalloc.h ../posixheaders/memalloc.h
-lib/readline/xmalloc.c ../malloc/xmalloc.c
-#
-lib/tilde/memalloc.h ../posixheaders/memalloc.h
-#
-lib/doc-support/getopt.h ../../builtins/getopt.h
-#
-posixstat.h lib/posixheaders/posixstat.h
-ansi_stdlib.h lib/posixheaders/ansi_stdlib.h
-stdc.h lib/posixheaders/stdc.h
-memalloc.h lib/posixheaders/memalloc.h
-filecntl.h lib/posixheaders/filecntl.h
+#
+# symlink map for bash source tree
+#
+# link name link target
+#
+lib/readline/doc/texindex.c ../../doc-support/texindex.c
+#
+lib/readline/tilde.c ../tilde/tilde.c
+lib/readline/tilde.h ../tilde/tilde.h
+lib/readline/posixstat.h ../posixheaders/posixstat.h
+lib/readline/ansi_stdlib.h ../posixheaders/ansi_stdlib.h
+lib/readline/memalloc.h ../posixheaders/memalloc.h
+lib/readline/xmalloc.c ../malloc/xmalloc.c
+#
+lib/tilde/memalloc.h ../posixheaders/memalloc.h
+#
+lib/doc-support/getopt.h ../../builtins/getopt.h
+#
+posixstat.h lib/posixheaders/posixstat.h
+ansi_stdlib.h lib/posixheaders/ansi_stdlib.h
+stdc.h lib/posixheaders/stdc.h
+memalloc.h lib/posixheaders/memalloc.h
+filecntl.h lib/posixheaders/filecntl.h
Index: bash.xbm
===================================================================
RCS file: /cvsroot/winbash/winbash/support/bash.xbm,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- bash.xbm 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ bash.xbm 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,59 +1,59 @@
-From: Simon Marshall <sm...@se...>
-Date: Wed, 8 May 91 17:15:58 +0100
-To: bug...@ai...
-Subject: X bitmap for bash
-
- Since other GNU software comes with its very own X bitmap, I
- thought it was about time bash had one too & here it is! To use,
- stick the stuff after my signature in a file <path>/bash.xbm. If
- using a twm window manager, insert the lines:
-
-IconDirectory "<path>"
-Icons {
- "<xterm title>" "bash.xbm"
-}
- in your ~/.twmrc file. The <xterm title> can be a prefix, so if
- you have titles "bash@machine", the prefix "bash" will do. I'm not
- familiar enough with other window managers, but they should be
- similar.
-
- If you like it, you're welcome to it...
-
- Simon.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-#define bash_width 64
-#define bash_height 48
-static char bash_bits[] = {
- 0x00, 0x60, 0x06, 0x30, 0x04, 0x00, 0x00, 0x00, 0x60, 0x98, 0x01, 0x40,
- 0x03, 0x00, 0x00, 0x00, 0x19, 0x00, 0xa0, 0x80, 0x80, 0xff, 0x00, 0x00,
- 0x06, 0x00, 0x1c, 0x03, 0xe1, 0x5f, 0x03, 0x00, 0x02, 0x00, 0x22, 0x0c,
- 0x5d, 0xf4, 0x0e, 0x00, 0xe1, 0x02, 0x09, 0x19, 0x17, 0x91, 0x3d, 0x00,
- 0xf8, 0x87, 0x40, 0x90, 0x88, 0x88, 0x6e, 0x00, 0x8e, 0x9b, 0x04, 0x62,
- 0x22, 0x22, 0xd6, 0x00, 0x02, 0xee, 0x4c, 0x68, 0x44, 0x44, 0x6c, 0x01,
- 0x02, 0xf8, 0xa1, 0x4a, 0x11, 0x11, 0xb1, 0x02, 0x05, 0xa0, 0x22, 0xe0,
- 0x88, 0x88, 0x68, 0x03, 0x42, 0x50, 0x5d, 0x40, 0x22, 0x22, 0xa2, 0x05,
- 0x11, 0x81, 0x00, 0x44, 0x44, 0x44, 0x44, 0x07, 0x02, 0x20, 0x84, 0x60,
- 0x11, 0x11, 0xd1, 0x0d, 0x02, 0x0a, 0x02, 0xc0, 0x88, 0x88, 0x48, 0x0b,
- 0x44, 0x40, 0x00, 0x42, 0x22, 0x22, 0xa2, 0x1d, 0x24, 0x08, 0x02, 0x64,
- 0x44, 0x44, 0xc4, 0x1a, 0x08, 0x00, 0x20, 0x20, 0x11, 0x11, 0x91, 0x15,
- 0x88, 0x00, 0x00, 0xe1, 0xff, 0xff, 0xff, 0x1a, 0x10, 0x08, 0x22, 0x10,
- 0x00, 0x00, 0xc0, 0x15, 0x31, 0x40, 0x00, 0xf2, 0x03, 0xc0, 0xc1, 0x1a,
- 0x41, 0x24, 0x48, 0x6c, 0x06, 0x80, 0xc1, 0x15, 0x82, 0x01, 0x00, 0x66,
- 0x06, 0x80, 0xc1, 0x1a, 0x04, 0x22, 0x12, 0x67, 0x06, 0x80, 0xc1, 0x15,
- 0x0a, 0x04, 0xe0, 0x66, 0xe6, 0xb8, 0xc7, 0x1a, 0x09, 0xf0, 0x17, 0xee,
- 0xb3, 0xa5, 0xcf, 0x15, 0x30, 0x00, 0x00, 0x6e, 0x86, 0x8d, 0xcd, 0x1a,
- 0x00, 0x01, 0x80, 0x67, 0xe6, 0xbd, 0xcd, 0x15, 0x00, 0x46, 0x40, 0x66,
- 0xb6, 0xb1, 0xcd, 0x1a, 0x00, 0x38, 0x3c, 0x66, 0xb6, 0xa5, 0xcd, 0x15,
- 0x00, 0x00, 0x02, 0xf6, 0xe3, 0x9d, 0xdd, 0x1a, 0x00, 0x04, 0x60, 0x06,
- 0x00, 0x00, 0xc0, 0x15, 0x00, 0x04, 0x40, 0xfe, 0xff, 0xff, 0xff, 0x1a,
- 0x00, 0x02, 0x80, 0x12, 0x11, 0x11, 0x91, 0x15, 0x00, 0x00, 0x00, 0x8a,
- 0x88, 0x88, 0x88, 0x1a, 0x00, 0x00, 0x00, 0x22, 0x22, 0x22, 0xa2, 0x15,
- 0x00, 0x00, 0x00, 0x46, 0x44, 0x44, 0xc4, 0x9a, 0x00, 0x00, 0x00, 0x12,
- 0x11, 0x11, 0x91, 0xb5, 0x00, 0x00, 0x10, 0x8a, 0x88, 0x88, 0x88, 0xba,
- 0x00, 0x00, 0x10, 0x22, 0x22, 0x22, 0xa2, 0xd5, 0x00, 0x00, 0x30, 0xc6,
- 0x44, 0x44, 0xcc, 0xdf, 0x00, 0x20, 0x39, 0x96, 0x15, 0x51, 0x99, 0xf5,
- 0x80, 0xf2, 0x56, 0x8b, 0x9a, 0xea, 0x9b, 0xff, 0xc1, 0xad, 0x5e, 0xaf,
- 0xbb, 0xfa, 0xba, 0xdf, 0x22, 0x9b, 0xae, 0xd7, 0x54, 0x5d, 0xd7, 0xbf,
- 0x3b, 0x32, 0xce, 0xff, 0xff, 0xff, 0xff, 0xab, 0xae, 0x2b, 0x59, 0xaf,
- 0xd4, 0xae, 0x2e, 0xc3, 0xdd, 0x43, 0xa9, 0xd1, 0xba, 0xae, 0x2c, 0xcd};
+From: Simon Marshall <sm...@se...>
+Date: Wed, 8 May 91 17:15:58 +0100
+To: bug...@ai...
+Subject: X bitmap for bash
+
+ Since other GNU software comes with its very own X bitmap, I
+ thought it was about time bash had one too & here it is! To use,
+ stick the stuff after my signature in a file <path>/bash.xbm. If
+ using a twm window manager, insert the lines:
+
+IconDirectory "<path>"
+Icons {
+ "<xterm title>" "bash.xbm"
+}
+ in your ~/.twmrc file. The <xterm title> can be a prefix, so if
+ you have titles "bash@machine", the prefix "bash" will do. I'm not
+ familiar enough with other window managers, but they should be
+ similar.
+
+ If you like it, you're welcome to it...
+
+ Simon.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#define bash_width 64
+#define bash_height 48
+static char bash_bits[] = {
+ 0x00, 0x60, 0x06, 0x30, 0x04, 0x00, 0x00, 0x00, 0x60, 0x98, 0x01, 0x40,
+ 0x03, 0x00, 0x00, 0x00, 0x19, 0x00, 0xa0, 0x80, 0x80, 0xff, 0x00, 0x00,
+ 0x06, 0x00, 0x1c, 0x03, 0xe1, 0x5f, 0x03, 0x00, 0x02, 0x00, 0x22, 0x0c,
+ 0x5d, 0xf4, 0x0e, 0x00, 0xe1, 0x02, 0x09, 0x19, 0x17, 0x91, 0x3d, 0x00,
+ 0xf8, 0x87, 0x40, 0x90, 0x88, 0x88, 0x6e, 0x00, 0x8e, 0x9b, 0x04, 0x62,
+ 0x22, 0x22, 0xd6, 0x00, 0x02, 0xee, 0x4c, 0x68, 0x44, 0x44, 0x6c, 0x01,
+ 0x02, 0xf8, 0xa1, 0x4a, 0x11, 0x11, 0xb1, 0x02, 0x05, 0xa0, 0x22, 0xe0,
+ 0x88, 0x88, 0x68, 0x03, 0x42, 0x50, 0x5d, 0x40, 0x22, 0x22, 0xa2, 0x05,
+ 0x11, 0x81, 0x00, 0x44, 0x44, 0x44, 0x44, 0x07, 0x02, 0x20, 0x84, 0x60,
+ 0x11, 0x11, 0xd1, 0x0d, 0x02, 0x0a, 0x02, 0xc0, 0x88, 0x88, 0x48, 0x0b,
+ 0x44, 0x40, 0x00, 0x42, 0x22, 0x22, 0xa2, 0x1d, 0x24, 0x08, 0x02, 0x64,
+ 0x44, 0x44, 0xc4, 0x1a, 0x08, 0x00, 0x20, 0x20, 0x11, 0x11, 0x91, 0x15,
+ 0x88, 0x00, 0x00, 0xe1, 0xff, 0xff, 0xff, 0x1a, 0x10, 0x08, 0x22, 0x10,
+ 0x00, 0x00, 0xc0, 0x15, 0x31, 0x40, 0x00, 0xf2, 0x03, 0xc0, 0xc1, 0x1a,
+ 0x41, 0x24, 0x48, 0x6c, 0x06, 0x80, 0xc1, 0x15, 0x82, 0x01, 0x00, 0x66,
+ 0x06, 0x80, 0xc1, 0x1a, 0x04, 0x22, 0x12, 0x67, 0x06, 0x80, 0xc1, 0x15,
+ 0x0a, 0x04, 0xe0, 0x66, 0xe6, 0xb8, 0xc7, 0x1a, 0x09, 0xf0, 0x17, 0xee,
+ 0xb3, 0xa5, 0xcf, 0x15, 0x30, 0x00, 0x00, 0x6e, 0x86, 0x8d, 0xcd, 0x1a,
+ 0x00, 0x01, 0x80, 0x67, 0xe6, 0xbd, 0xcd, 0x15, 0x00, 0x46, 0x40, 0x66,
+ 0xb6, 0xb1, 0xcd, 0x1a, 0x00, 0x38, 0x3c, 0x66, 0xb6, 0xa5, 0xcd, 0x15,
+ 0x00, 0x00, 0x02, 0xf6, 0xe3, 0x9d, 0xdd, 0x1a, 0x00, 0x04, 0x60, 0x06,
+ 0x00, 0x00, 0xc0, 0x15, 0x00, 0x04, 0x40, 0xfe, 0xff, 0xff, 0xff, 0x1a,
+ 0x00, 0x02, 0x80, 0x12, 0x11, 0x11, 0x91, 0x15, 0x00, 0x00, 0x00, 0x8a,
+ 0x88, 0x88, 0x88, 0x1a, 0x00, 0x00, 0x00, 0x22, 0x22, 0x22, 0xa2, 0x15,
+ 0x00, 0x00, 0x00, 0x46, 0x44, 0x44, 0xc4, 0x9a, 0x00, 0x00, 0x00, 0x12,
+ 0x11, 0x11, 0x91, 0xb5, 0x00, 0x00, 0x10, 0x8a, 0x88, 0x88, 0x88, 0xba,
+ 0x00, 0x00, 0x10, 0x22, 0x22, 0x22, 0xa2, 0xd5, 0x00, 0x00, 0x30, 0xc6,
+ 0x44, 0x44, 0xcc, 0xdf, 0x00, 0x20, 0x39, 0x96, 0x15, 0x51, 0x99, 0xf5,
+ 0x80, 0xf2, 0x56, 0x8b, 0x9a, 0xea, 0x9b, 0xff, 0xc1, 0xad, 0x5e, 0xaf,
+ 0xbb, 0xfa, 0xba, 0xdf, 0x22, 0x9b, 0xae, 0xd7, 0x54, 0x5d, 0xd7, 0xbf,
+ 0x3b, 0x32, 0xce, 0xff, 0xff, 0xff, 0xff, 0xab, 0xae, 0x2b, 0x59, 0xaf,
+ 0xd4, 0xae, 0x2e, 0xc3, 0xdd, 0x43, 0xa9, 0xd1, 0xba, 0xae, 0x2c, 0xcd};
Index: bashbug.sh
===================================================================
RCS file: /cvsroot/winbash/winbash/support/bashbug.sh,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- bashbug.sh 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ bashbug.sh 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,72 +1,72 @@
-#!/bin/sh -
-#
-# bashbug - create a bug report and mail it to bug...@pr...
-#
-# configuration section:
-# these variables are filled in by the make target in cpp-Makefile
-#
-MACHINE="@MACHINE@"
-OS="@OS@"
-CC="@CC@"
-CFLAGS="@CFLAGS@"
-RELEASE="@RELEASE@"
-PATCHLEVEL="@PATCHLEVEL@"
-
-PATH=/bin:/usr/bin:usr/local/bin:$PATH
-export PATH
-
-TEMP=/tmp/bashbug.$$
-
-BUGADDR=${1:-bu...@pr...}
-
-: ${EDITOR=emacs}
-
-trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15
-trap 'rm -f $TEMP $TEMP.x' 0
-
-UN=
-if (uname) >/dev/null 2>&1; then
- UN=`uname -a`
-fi
-
-cat > $TEMP <<EOF
-To: ${BUGADDR}
-Subject: [50 character or so descriptive subject here (for reference)]
-
-Configuration Information [Automatically generated, do not change]:
-Machine: $MACHINE
-OS: $OS
-Compiler: $CC
-Compilation CFLAGS: $CFLAGS
-uname output: $UN
-
-Bash Version: $RELEASE
-Patch Level: $PATCHLEVEL
-
-Description:
- [Detailed description of the problem, suggestion, or complaint.]
-
-Repeat-By:
- [Describe the sequence of events that causes the problem
- to occur.]
-
-Fix:
- [Description of how to fix the problem. If you don't know a
- fix for the problem, don't include this section.]
-EOF
-
-chmod u+w $TEMP
-cp $TEMP $TEMP.x
-
-if $EDITOR $TEMP
-then
- if cmp -s $TEMP $TEMP.x
- then
- echo "File not changed, no bug report submitted."
- exit
- fi
-
- rmail $BUGADDR < $TEMP || cat $TEMP >> $HOME/dead.bashbug
-fi
-
-exit 0
+#!/bin/sh -
+#
+# bashbug - create a bug report and mail it to bug...@pr...
+#
+# configuration section:
+# these variables are filled in by the make target in cpp-Makefile
+#
+MACHINE="@MACHINE@"
+OS="@OS@"
+CC="@CC@"
+CFLAGS="@CFLAGS@"
+RELEASE="@RELEASE@"
+PATCHLEVEL="@PATCHLEVEL@"
+
+PATH=/bin:/usr/bin:usr/local/bin:$PATH
+export PATH
+
+TEMP=/tmp/bashbug.$$
+
+BUGADDR=${1:-bu...@pr...}
+
+: ${EDITOR=emacs}
+
+trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15
+trap 'rm -f $TEMP $TEMP.x' 0
+
+UN=
+if (uname) >/dev/null 2>&1; then
+ UN=`uname -a`
+fi
+
+cat > $TEMP <<EOF
+To: ${BUGADDR}
+Subject: [50 character or so descriptive subject here (for reference)]
+
+Configuration Information [Automatically generated, do not change]:
+Machine: $MACHINE
+OS: $OS
+Compiler: $CC
+Compilation CFLAGS: $CFLAGS
+uname output: $UN
+
+Bash Version: $RELEASE
+Patch Level: $PATCHLEVEL
+
+Description:
+ [Detailed description of the problem, suggestion, or complaint.]
+
+Repeat-By:
+ [Describe the sequence of events that causes the problem
+ to occur.]
+
+Fix:
+ [Description of how to fix the problem. If you don't know a
+ fix for the problem, don't include this section.]
+EOF
+
+chmod u+w $TEMP
+cp $TEMP $TEMP.x
+
+if $EDITOR $TEMP
+then
+ if cmp -s $TEMP $TEMP.x
+ then
+ echo "File not changed, no bug report submitted."
+ exit
+ fi
+
+ rmail $BUGADDR < $TEMP || cat $TEMP >> $HOME/dead.bashbug
+fi
+
+exit 0
Index: cat-s
===================================================================
RCS file: /cvsroot/winbash/winbash/support/cat-s,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- cat-s 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ cat-s 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,16 +1,16 @@
-# This awk script is called from within Makefile to strip multiple blank
-# lines from stdin.
-BEGIN { newlines = 0 }
-{
- if (NF == 0)
- newlines = 1;
- else
- {
- if (newlines)
- {
- printf "\n";
- newlines = 0;
- }
- print $0;
- }
-}
+# This awk script is called from within Makefile to strip multiple blank
+# lines from stdin.
+BEGIN { newlines = 0 }
+{
+ if (NF == 0)
+ newlines = 1;
+ else
+ {
+ if (newlines)
+ {
+ printf "\n";
+ newlines = 0;
+ }
+ print $0;
+ }
+}
Index: clone-bash
===================================================================
RCS file: /cvsroot/winbash/winbash/support/clone-bash,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- clone-bash 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ clone-bash 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,95 +1,95 @@
-#! /bin/sh
-#
-#
-src=src
-case "$1" in
--s) shift; src=$1; shift ;;
-esac
-
-if [ ! -d $1 ]; then
- mkdir $1
-fi
-
-prog=`basename $0`
-
-echo "${prog}: creating clone of bash source tree (from $src) in $1"
-
-case $src in
-/*) abs=yes ;;
-esac
-
-d=${PWD-`pwd`}
-
-cd $1 || { echo "$0: cannot cd to $1" ; exit 1; }
-
-d=$d/$1
-
-SUBDIRS="CWRU builtins documentation examples support tests"
-LIBDIRS="malloc termcap glob readline tilde malloclib posixheaders doc-support"
-CWRUDIRS="misc"
-
-mkdir $SUBDIRS
-for i in $SUBDIRS
-do
- cd $i
- case "$abs" in
- yes) ln -s $src/$i/* . ;;
- *) ln -s ../../$src/$i/* . ;;
- esac
- echo -n $i..
- cd ..
-done
-cd $d
-
-cd CWRU
-for i in $CWRUDIRS
-do
- rm -f $i
- mkdir $i
- cd $i
- case "$abs" in
- yes) ln -s $src/CWRU/$i/* . ;;
- *) ln -s ../../../$src/CWRU/$i/* . ;;
- esac
- echo -n "CWRU/$i.."
- cd ..
-done
-cd $d
-
-if [ ! -d lib ] ; then
- mkdir lib
-fi
-
-cd lib
-mkdir $LIBDIRS
-
-for i in $LIBDIRS
-do
- cd $i
- case "$abs" in
- yes) ln -s $src/lib/$i/* . ;;
- *) ln -s ../../../$src/lib/$i/* . ;;
- esac
- echo -n "lib/$i.."
- cd ..
-done
-
-cd $d
-
-case "$abs" in
-yes) ln -s $src/.[a-z]* . ; ln -s $src/* . 2>&1 | grep -v exists ;;
-*) ln -s ../$src/.[a-z]* . ; ln -s ../$src/* . 2>&1 | grep -v exists ;;
-esac
-
-echo -n src..
-
-SPECIAL="parser-built y.tab.h y.tab.c"
-for x in $SPECIAL
-do
- rm -f $x
- cp ../$src/$x .
-done
-
-echo special
-
-exit 0
+#! /bin/sh
+#
+#
+src=src
+case "$1" in
+-s) shift; src=$1; shift ;;
+esac
+
+if [ ! -d $1 ]; then
+ mkdir $1
+fi
+
+prog=`basename $0`
+
+echo "${prog}: creating clone of bash source tree (from $src) in $1"
+
+case $src in
+/*) abs=yes ;;
+esac
+
+d=${PWD-`pwd`}
+
+cd $1 || { echo "$0: cannot cd to $1" ; exit 1; }
+
+d=$d/$1
+
+SUBDIRS="CWRU builtins documentation examples support tests"
+LIBDIRS="malloc termcap glob readline tilde malloclib posixheaders doc-support"
+CWRUDIRS="misc"
+
+mkdir $SUBDIRS
+for i in $SUBDIRS
+do
+ cd $i
+ case "$abs" in
+ yes) ln -s $src/$i/* . ;;
+ *) ln -s ../../$src/$i/* . ;;
+ esac
+ echo -n $i..
+ cd ..
+done
+cd $d
+
+cd CWRU
+for i in $CWRUDIRS
+do
+ rm -f $i
+ mkdir $i
+ cd $i
+ case "$abs" in
+ yes) ln -s $src/CWRU/$i/* . ;;
+ *) ln -s ../../../$src/CWRU/$i/* . ;;
+ esac
+ echo -n "CWRU/$i.."
+ cd ..
+done
+cd $d
+
+if [ ! -d lib ] ; then
+ mkdir lib
+fi
+
+cd lib
+mkdir $LIBDIRS
+
+for i in $LIBDIRS
+do
+ cd $i
+ case "$abs" in
+ yes) ln -s $src/lib/$i/* . ;;
+ *) ln -s ../../../$src/lib/$i/* . ;;
+ esac
+ echo -n "lib/$i.."
+ cd ..
+done
+
+cd $d
+
+case "$abs" in
+yes) ln -s $src/.[a-z]* . ; ln -s $src/* . 2>&1 | grep -v exists ;;
+*) ln -s ../$src/.[a-z]* . ; ln -s ../$src/* . 2>&1 | grep -v exists ;;
+esac
+
+echo -n src..
+
+SPECIAL="parser-built y.tab.h y.tab.c"
+for x in $SPECIAL
+do
+ rm -f $x
+ cp ../$src/$x .
+done
+
+echo special
+
+exit 0
Index: cppmagic
===================================================================
RCS file: /cvsroot/winbash/winbash/support/cppmagic,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- cppmagic 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ cppmagic 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,51 +1,51 @@
-#!/bin/sh
-# Return a full cpp specification, complete with system dependent flags.
-#
-# Syntax: cppmagic [ program-to-generate-flags [ guessed-cpp ]]
-#
-# If only one arg is present it is the name of a program to invoke
-# which should generate -Dfoo defines.
-#
-# If two args are present the second arg is the name of the C
-# preprocessor to use.
-#
-# Invoked with no args, provides a C preprocessor name and
-# -traditional flag if that is appropriate.
-#
-# ../Makefile calls this file thusly: "cppmagic getcppsyms".
-#
-# Typical output:
-#
-# /lib/cpp -Dunix -Dm68k
-#
-
-Cpp=
-
-if [ "$2" ]; then
- Cpp=$2
-else
- for cpp in /lib/cpp /usr/lib/cpp /usr/ccs/lib/cpp; do
- if [ -f $cpp ]; then
- Cpp=$cpp
- fi
- done
- if [ "$Cpp" = "" ]; then
- Cpp=cpp
- fi
-fi
-
-TRADITIONAL=
-FLAGS=
-
-# First flag might be `-traditional' if this is Gnu Cpp.
-unknown_flag=`$Cpp -traditional /dev/null 2>&1 |
- egrep 'known|recognized|valid|bad|legal'`
-if [ "$unknown_flag" = "" ]; then
- TRADITIONAL=-traditional
-fi
-
-if [ "$1" ]; then
- FLAGS=`$1`
-fi
-
-echo $Cpp $TRADITIONAL $FLAGS
+#!/bin/sh
+# Return a full cpp specification, complete with system dependent flags.
+#
+# Syntax: cppmagic [ program-to-generate-flags [ guessed-cpp ]]
+#
+# If only one arg is present it is the name of a program to invoke
+# which should generate -Dfoo defines.
+#
+# If two args are present the second arg is the name of the C
+# preprocessor to use.
+#
+# Invoked with no args, provides a C preprocessor name and
+# -traditional flag if that is appropriate.
+#
+# ../Makefile calls this file thusly: "cppmagic getcppsyms".
+#
+# Typical output:
+#
+# /lib/cpp -Dunix -Dm68k
+#
+
+Cpp=
+
+if [ "$2" ]; then
+ Cpp=$2
+else
+ for cpp in /lib/cpp /usr/lib/cpp /usr/ccs/lib/cpp; do
+ if [ -f $cpp ]; then
+ Cpp=$cpp
+ fi
+ done
+ if [ "$Cpp" = "" ]; then
+ Cpp=cpp
+ fi
+fi
+
+TRADITIONAL=
+FLAGS=
+
+# First flag might be `-traditional' if this is Gnu Cpp.
+unknown_flag=`$Cpp -traditional /dev/null 2>&1 |
+ egrep 'known|recognized|valid|bad|legal'`
+if [ "$unknown_flag" = "" ]; then
+ TRADITIONAL=-traditional
+fi
+
+if [ "$1" ]; then
+ FLAGS=`$1`
+fi
+
+echo $Cpp $TRADITIONAL $FLAGS
Index: fixlinks
===================================================================
RCS file: /cvsroot/winbash/winbash/support/fixlinks,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- fixlinks 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ fixlinks 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,61 +1,61 @@
-#! /bin/sh
-#
-# fixlinks - make symlinks in the bash source tree so that there is
-# exactly one version of any given source file.
-#
-#
-
-SRCDIR=.
-while [ $# -gt 0 ]; do
- case "$1" in
- -s) shift; SRCDIR=$1 ;;
- -u) unfix=yes ;;
- -*) echo "$0: $1: bad option" 1>&2
- echo "$0: usage: $0 [-u] [-s srcdir] [linkmap]" 1>&2
- exit 1;;
- *) break ;;
- esac
- shift
-done
-
-if [ ! -d $SRCDIR/builtins ]; then
- echo "$0: must be run with valid -s argument or from source directory" 1>&2
- exit 1
-fi
-
-if [ $# -eq 0 ]; then
- linkfile=$SRCDIR/support/SYMLINKS
-else
- linkfile=$1
-fi
-
-if [ ! -f "$linkfile" ]; then
- echo "$0: symlink map file \`$linkfile' does not exist"
- exit 1
-fi
-
-rm -f /tmp/z
-if (ln -s /dev/null /tmp/z) >/dev/null 2>&1; then
- LN="ln -s"
-else
- LN=ln
-fi
-
-while read name target
-do
- case "$name" in
- \#*) continue;;
- esac
-
- rm -f $name
- case "$unfix" in
- yes) dirname=`expr "$name" ':' '^\(.*\)/[^/]*'`
- [ -z "$dirname" ] && dirname=.
- cp $dirname/$target $name
- echo $target copied to $name ;;
- *) $LN $target $name ; echo "$name -> $target" ;;
- esac
-
-done < $linkfile
-
-exit 0
+#! /bin/sh
+#
+# fixlinks - make symlinks in the bash source tree so that there is
+# exactly one version of any given source file.
+#
+#
+
+SRCDIR=.
+while [ $# -gt 0 ]; do
+ case "$1" in
+ -s) shift; SRCDIR=$1 ;;
+ -u) unfix=yes ;;
+ -*) echo "$0: $1: bad option" 1>&2
+ echo "$0: usage: $0 [-u] [-s srcdir] [linkmap]" 1>&2
+ exit 1;;
+ *) break ;;
+ esac
+ shift
+done
+
+if [ ! -d $SRCDIR/builtins ]; then
+ echo "$0: must be run with valid -s argument or from source directory" 1>&2
+ exit 1
+fi
+
+if [ $# -eq 0 ]; then
+ linkfile=$SRCDIR/support/SYMLINKS
+else
+ linkfile=$1
+fi
+
+if [ ! -f "$linkfile" ]; then
+ echo "$0: symlink map file \`$linkfile' does not exist"
+ exit 1
+fi
+
+rm -f /tmp/z
+if (ln -s /dev/null /tmp/z) >/dev/null 2>&1; then
+ LN="ln -s"
+else
+ LN=ln
+fi
+
+while read name target
+do
+ case "$name" in
+ \#*) continue;;
+ esac
+
+ rm -f $name
+ case "$unfix" in
+ yes) dirname=`expr "$name" ':' '^\(.*\)/[^/]*'`
+ [ -z "$dirname" ] && dirname=.
+ cp $dirname/$target $name
+ echo $target copied to $name ;;
+ *) $LN $target $name ; echo "$name -> $target" ;;
+ esac
+
+done < $linkfile
+
+exit 0
Index: getcppsyms.c
===================================================================
RCS file: /cvsroot/winbash/winbash/support/getcppsyms.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- getcppsyms.c 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ getcppsyms.c 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,425 +1,425 @@
-/* getcppsyms.c - Find unique compiler symbols. */
-
-/* Copyright (C) 1993 Free Software Foundation, Inc.
-
- This file is part of GNU Bash, the Bourne Again SHell.
-
- Bash is free software; you can redistribute it and/or modify it under
- the terms of the GNU General Public License as published by the Free
- Software Foundation; either version 2, or (at your option) any later
- version.
-
- Bash is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License along
- with Bash; see the file COPYING. If not, write to the Free Software
- Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-/* Some cpp's do not define any symbols, but instead let /bin/cc do it
- for them. For such machines, running this file may prove useful. It
- outputs the list of symbols which /bin/cc or /lib/cpp define and which
- we had the foresight to guess at. */
-
-#include <stdio.h>
-main ()
-{
-#if defined (__BSD_4_4__)
- printf ("-D__BSD_4_4__");
-#endif /* __BSD_4_4__ */
-#if defined (CMU)
- printf (" -DCMU");
-#endif /* CMU */
-#if defined (_COFF)
- printf (" -D_COFF");
-#endif /* _COFF */
-#if defined (DGUX)
- printf (" -DDGUX");
-#endif /* DGUX */
-#if defined (GOULD_PN)
- printf (" -DGOULD_PN");
-#endif /* GOULD_PN */
-#if defined (MACH)
- printf (" -DMACH");
-#endif /* MACH */
-#if defined (MIPSEB)
- printf (" -DMIPSEB");
-#endif /* MIPSEB */
-#if defined (MIPSEL)
- printf (" -DMIPSEL");
-#endif /* MIPSEL */
-#if defined (MULTIMAX)
- printf (" -DMULTIMAX");
-#endif /* MULTIMAX */
-#if defined (M_UNIX)
- printf (" -DM_UNIX");
-#endif /* M_UNIX */
-#if defined (M_XENIX)
- printf (" -DM_XENIX");
-#endif /* M_XENIX */
-#if defined (_M_XENIX)
- printf (" -D_M_XENIX");
-#endif /* _M_XENIX */
-#if defined (NeXT)
- printf (" -DNeXT");
-#endif /* NeXT */
-#if defined (__PARAGON__)
- printf (" -D__PARAGON__");
-#endif /* __PARAGON__ */
-#if defined (_PGC_)
- printf (" -D_PGC_");
-#endif /* _PGC_ */
-#if defined (__PGC__)
- printf (" -D__PGC__");
-#endif /* __PGC__ */
-#if defined (RES)
- printf (" -DRES");
-#endif /* RES */
-#if defined (RISC6000)
- printf (" -DRISC6000");
-#endif /* RISC6000 */
-#if defined (RT)
- printf (" -DRT");
-#endif /* RT */
-#if defined (SYSTYPE_BSD)
- printf (" -DSYSTYPE_BSD");
-#endif /* SYSTYPE_BSD */
-#if defined (SYSTYPE_SYSV)
- printf (" -DSYSTYPE_SYSV");
-#endif /* SYSTYPE_SYSV */
-#if defined (Sun386i)
- printf (" -DSun386i");
-#endif /* Sun386i */
-#if defined (Tek4132)
- printf (" -DTek4132");
-#endif /* Tek4132 */
-#if defined (Tek4300)
- printf (" -DTek4300");
-#endif /* Tek4300 */
-#if defined (UMAXV)
- printf (" -DUMAXV");
-#endif /* UMAXV */
-#if defined (USGr4)
- printf (" -DUSGr4");
-#endif /* USGr4 */
-#if defined (USGr4_2)
- printf (" -DUSGr4_2");
-#endif /* USGr4_2 */
-#if defined (__SVR4_2__)
- printf (" -D__SVR4_2__");
-#endif /* __SVR4_2__ */
-#if defined (Xenix286)
- printf (" -DXenix286");
-#endif /* Xenix286 */
-#if defined (_AIX)
- printf (" -D_AIX");
-#endif /* _AIX */
-#if defined (_AIX370)
- printf (" -D_AIX370");
-#endif /* _AIX370 */
-#if defined (_IBMESA)
- printf (" -D_IBMESA");
-#endif /* _IBMESA */
-#if defined (__ibmesa)
- printf (" -D__ibmesa");
-#endif /* __ibmesa */
-#if defined (_U370)
- printf (" -D_U370");
-#endif /* _U370 */
-#if defined (_NLS)
- printf (" -D_NLS");
-#endif /* _NLS */
-#if defined (_CX_UX)
- printf (" -D_CX_UX");
-#endif /* _CX_UX */
-#if defined (_IBMR2)
- printf (" -D_IBMR2");
-#endif /* _IBMR2 */
-#if defined (_M88K)
- printf (" -D_M88K");
-#endif /* _M88K */
-#if defined (_M88KBCS_TARGET)
- printf (" -D_M88KBCS_TARGET");
-#endif /* _M88KBCS_TARGET */
-#if defined (__DGUX__)
- printf (" -D__DGUX__");
-#endif /* __DGUX__ */
-#if defined (__UMAXV__)
- printf (" -D__UMAXV__");
-#endif /* __UMAXV__ */
-#if defined (__m88k)
- printf (" -D__m88k");
-#endif /* __m88k */
-#if defined (__uxpm__)
- printf (" -DUSGr4 -Du370 -D__uxpm__");
-#endif /* __uxpm__ */
-#if defined (__uxps__)
- printf (" -D__svr4__ -D__uxps__");
-#endif /* __uxps__ */
-#if defined (alliant)
- printf (" -Dalliant");
-#endif /* alliant */
-#if defined (alpha)
- printf (" -Dalpha");
-#endif /* alpha */
-#if defined (__alpha)
- printf (" -D__alpha");
-#endif /* __alpha */
-#if defined (aix)
- printf (" -Daix");
-#endif /* aix */
-#if defined (aixpc)
- printf (" -Daixpc");
-#endif /* aixpc */
-#if defined (apollo)
- printf (" -Dapollo");
-#endif /* apollo */
-#if defined (ardent)
- printf (" -Dardent");
-#endif /* ardent */
-#if defined (att386)
- printf (" -Datt386");
-#endif /* att386 */
-#if defined (att3b)
- printf (" -Datt3b");
-#endif /* att3b */
-#if defined (bsd4_2)
- printf (" -Dbsd4_2");
-#endif /* bsd4_2 */
-#if defined (bsd4_3)
- printf (" -Dbsd4_3");
-#endif /* bsd4_3 */
-#if defined (__bsdi__)
- printf (" -D__bsdi__");
-#endif /* __bsdi__ */
-#if defined (bsdi)
- printf (" -Dbsdi");
-#endif /* bsdi */
-#if defined (__386BSD__)
- printf (" -D__386BSD__");
-#endif /* __386BSD__ */
-#if defined (cadmus)
- printf (" -Dcadmus");
-#endif /* cadmus */
-#if defined (clipper)
- printf (" -Dclipper");
-#endif /* clipper */
-#if defined (concurrent)
- printf (" -Dconcurrent");
-#endif /* concurrent */
-#if defined (convex) || defined (__convex__) || defined (__convexc__)
-# if !defined (__GNUC__)
- printf (" -pcc");
-# endif /* !__GNUC__ */
- printf (" -Dconvex");
-#endif /* convex */
-#if defined (dmert)
- printf (" -Ddmert");
-#endif /* dmert */
-#if defined (gcos)
- printf (" -Dgcos");
-#endif /* gcos */
-#if defined (gcx)
- printf (" -Dgcx");
-#endif /* gcx */
-#if defined (gould)
- printf (" -Dgould");
-#endif /* gould */
-#if defined (hbullx20)
- printf (" -Dhbullx20");
-#endif /* hbullx20 */
-#if defined (hcx)
- printf (" -Dhcx");
-#endif /* hcx */
-#if defined (host_mips)
- printf (" -Dhost_mips");
-#endif /* host_mips */
-#if defined (hp9000) || defined (__hp9000)
- printf (" -Dhp9000");
-#endif /* hp9000 || __hp9000 */
-#if defined (hp9000s200) || defined (__hp9000s200)
- printf (" -Dhp9000s200");
-#endif /* hp9000s200 || __hp9000s200 */
-#if defined (hp9000s300) || defined (__hp9000s300)
- printf (" -Dhp9000s300");
-#endif /* hp9000s300 || __hp9000s300 */
-#if defined (hp9000s500) || defined (__hp9000s500)
- printf (" -Dhp9000s500");
-#endif /* hp9000s500 || __hp9000s500 */
-#if defined (hp9000s700) || defined (__hp9000s700)
- printf (" -Dhp9000s700");
-#endif /* hp9000s700 || __hp9000s700 */
-#if defined (hp9000s800) || defined (__hp9000s800)
- printf (" -Dhp9000s800");
-#endif /* hp9000s800 || __hp9000s800 */
-#if defined (hppa) || defined (__hppa)
- printf (" -Dhppa");
-#endif /* hppa || __hppa */
-#if defined (hpux) || defined (__hpux)
- printf (" -Dhpux");
-#endif /* hpux */
-#if defined (__hp_osf)
- printf (" -D__hp_osf");
-#endif /* __hp_osf */
-#if defined (i386)
- printf (" -Di386");
-#endif /* i386 */
-#if defined (__i386__)
- printf (" -D__i386__");
-#endif
-#if defined (__i860)
- printf(" -D__i860");
-#endif /* __i860 */
-#if defined (__i860__)
- printf(" -D__i860__");
-#endif /* __i860__ */
-#if defined (ibm)
- printf (" -Dibm");
-#endif /* ibm */
-#if defined (ibm032)
- printf (" -Dibm032");
-#endif /* ibm032 */
-#if defined (ibmrt)
- printf (" -Dibmrt");
-#endif /* ibmrt */
-#if defined (interdata)
- printf (" -Dinterdata");
-#endif /* interdata */
-#if defined (is68k)
- printf (" -Dis68k");
-#endif /* is68k */
-#if defined (ksr1)
- printf (" -Dksr1");
-#endif /* ksr1 */
-#if defined (__ksr1__)
- printf (" -D__ksr1__");
-#endif /* __ksr1__ */
-#if defined (linux)
- printf (" -Dlinux");
-#endif /* linux */
-#if defined (__linux__)
- printf (" -D__linux__");
-#endif /* __linux__ */
-#if defined (luna88k)
- printf (" -Dluna88k");
-#endif /* luna88k */
-#if defined (m68k)
- printf (" -Dm68k");
-#endif /* m68k */
-#if defined (m88k)
- printf (" -Dm88k");
-#endif /* m88k */
-#if defined (mc68010)
- printf (" -Dmc68010");
-#endif /* mc68010 */
-#if defined (mc68020)
- printf (" -Dmc68020");
-#endif /* mc68020 */
-#if defined (mc68030)
- printf (" -Dmc68030");
-#endif /* mc68030 */
-#if defined (mc68040)
- printf (" -Dmc68040");
-#endif /* mc68040 */
-#if defined (mc68k32)
- printf (" -Dmc68k32");
-#endif /* mc68k32 */
-#if defined (mips)
- printf (" -Dmips");
-#endif /* mips */
-#if defined (n16)
- printf (" -Dn16");
-#endif /* n16 */
-#if defined (ns32000)
- printf (" -Dns32000");
-#endif /* ns32000 */
-#if defined (os)
- printf (" -Dos");
-#endif /* os */
-#if defined (osf)
- printf (" -Dosf");
-#endif /* osf */
-#if defined (__osf__)
- printf (" -D__osf__");
-#endif /* __osf__ */
-#if defined (__OSF1__)
- printf(" -D__OSF1__");
-#endif /* __OSF1__ */
-#if defined (pdp11)
- printf (" -Dpdp11");
-#endif /* pdp11 */
-#if defined (plexus)
- printf (" -Dplexus")
-#endif /* plexus */
-#if defined (pyr)
- printf (" -Dpyr");
-#endif /* pyr */
-#if defined (scs)
- printf (" -Dscs");
-#endif /* scs */
-#if defined (sequent)
- printf (" -Dsequent");
-#endif /* sequent */
-#if defined (sgi)
- printf (" -Dsgi");
-#endif /* sgi */
-#if defined (sony)
- printf (" -Dsony");
-#endif /* sony */
-#if defined (sparc)
- printf (" -Dsparc");
-#endif /* sparc */
-#if defined (stardent)
- printf (" -Dstardent");
-#endif /* stardent */
-#if defined (sun)
- printf (" -Dsun");
-#endif /* sun */
-#if defined (sun2)
- printf (" -Dsun2");
-#endif /* sun2 */
-#if defined (sun3)
- printf (" -Dsun3");
-#endif /* sun3 */
-#if defined (sun4)
- printf (" -Dsun4");
-#endif /* sun4 */
-#if defined (__svr4__)
- printf (" -D__svr4__");
-#endif /* __svr4__ */
-#if defined (tower32)
- printf (" -Dtower32");
-#endif /* tower32 */
-#if defined (tss)
- printf (" -Dtss");
-#endif /* tss */
-#if defined (u370)
- printf (" -Du370");
-#endif /* u370 */
-#if defined (u3b)
- printf (" -Du3b");
-#endif /* u3b */
-#if defined (u3b2)
- printf (" -Du3b2");
-#endif /* u3b2 */
-#if defined (u3b20d)
- printf (" -Du3b20d");
-#endif /* u3b20d */
-#if defined (u3b5)
- printf (" -Du3b5");
-#endif /* u3b5 */
-#if defined (ultrix)
- printf (" -Dultrix");
-#endif /* ultrix */
-#if defined (unix)
- printf (" -Dunix");
-#endif /* unix */
-#if defined (vax)
- printf (" -Dvax");
-#endif /* vax */
-
- printf ("\n");
- exit (0);
-}
+/* getcppsyms.c - Find unique compiler symbols. */
+
+/* Copyright (C) 1993 Free Software Foundation, Inc.
+
+ This file is part of GNU Bash, the Bourne Again SHell.
+
+ Bash is free software; you can redistribute it and/or modify it under
+ the terms of the GNU General Public License as published by the Free
+ Software Foundation; either version 2, or (at your option) any later
+ version.
+
+ Bash is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with Bash; see the file COPYING. If not, write to the Free Software
+ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+/* Some cpp's do not define any symbols, but instead let /bin/cc do it
+ for them. For such machines, running this file may prove useful. It
+ outputs the list of symbols which /bin/cc or /lib/cpp define and which
+ we had the foresight to guess at. */
+
+#include <stdio.h>
+main ()
+{
+#if defined (__BSD_4_4__)
+ printf ("-D__BSD_4_4__");
+#endif /* __BSD_4_4__ */
+#if defined (CMU)
+ printf (" -DCMU");
+#endif /* CMU */
+#if defined (_COFF)
+ printf (" -D_COFF");
+#endif /* _COFF */
+#if defined (DGUX)
+ printf (" -DDGUX");
+#endif /* DGUX */
+#if defined (GOULD_PN)
+ printf (" -DGOULD_PN");
+#endif /* GOULD_PN */
+#if defined (MACH)
+ printf (" -DMACH");
+#endif /* MACH */
+#if defined (MIPSEB)
+ printf (" -DMIPSEB");
+#endif /* MIPSEB */
+#if defined (MIPSEL)
+ printf (" -DMIPSEL");
+#endif /* MIPSEL */
+#if defined (MULTIMAX)
+ printf (" -DMULTIMAX");
+#endif /* MULTIMAX */
+#if defined (M_UNIX)
+ printf (" -DM_UNIX");
+#endif /* M_UNIX */
+#if defined (M_XENIX)
+ printf (" -DM_XENIX");
+#endif /* M_XENIX */
+#if defined (_M_XENIX)
+ printf (" -D_M_XENIX");
+#endif /* _M_XENIX */
+#if defined (NeXT)
+ printf (" -DNeXT");
+#endif /* NeXT */
+#if defined (__PARAGON__)
+ printf (" -D__PARAGON__");
+#endif /* __PARAGON__ */
+#if defined (_PGC_)
+ printf (" -D_PGC_");
+#endif /* _PGC_ */
+#if defined (__PGC__)
+ printf (" -D__PGC__");
+#endif /* __PGC__ */
+#if defined (RES)
+ printf (" -DRES");
+#endif /* RES */
+#if defined (RISC6000)
+ printf (" -DRISC6000");
+#endif /* RISC6000 */
+#if defined (RT)
+ printf (" -DRT");
+#endif /* RT */
+#if defined (SYSTYPE_BSD)
+ printf (" -DSYSTYPE_BSD");
+#endif /* SYSTYPE_BSD */
+#if defined (SYSTYPE_SYSV)
+ printf (" -DSYSTYPE_SYSV");
+#endif /* SYSTYPE_SYSV */
+#if defined (Sun386i)
+ printf (" -DSun386i");
+#endif /* Sun386i */
+#if defined (Tek4132)
+ printf (" -DTek4132");
+#endif /* Tek4132 */
+#if defined (Tek4300)
+ printf (" -DTek4300");
+#endif /* Tek4300 */
+#if defined (UMAXV)
+ printf (" -DUMAXV");
+#endif /* UMAXV */
+#if defined (USGr4)
+ printf (" -DUSGr4");
+#endif /* USGr4 */
+#if defined (USGr4_2)
+ printf (" -DUSGr4_2");
+#endif /* USGr4_2 */
+#if defined (__SVR4_2__)
+ printf (" -D__SVR4_2__");
+#endif /* __SVR4_2__ */
+#if defined (Xenix286)
+ printf (" -DXenix286");
+#endif /* Xenix286 */
+#if defined (_AIX)
+ printf (" -D_AIX");
+#endif /* _AIX */
+#if defined (_AIX370)
+ printf (" -D_AIX370");
+#endif /* _AIX370 */
+#if defined (_IBMESA)
+ printf (" -D_IBMESA");
+#endif /* _IBMESA */
+#if defined (__ibmesa)
+ printf (" -D__ibmesa");
+#endif /* __ibmesa */
+#if defined (_U370)
+ printf (" -D_U370");
+#endif /* _U370 */
+#if defined (_NLS)
+ printf (" -D_NLS");
+#endif /* _NLS */
+#if defined (_CX_UX)
+ printf (" -D_CX_UX");
+#endif /* _CX_UX */
+#if defined (_IBMR2)
+ printf (" -D_IBMR2");
+#endif /* _IBMR2 */
+#if defined (_M88K)
+ printf (" -D_M88K");
+#endif /* _M88K */
+#if defined (_M88KBCS_TARGET)
+ printf (" -D_M88KBCS_TARGET");
+#endif /* _M88KBCS_TARGET */
+#if defined (__DGUX__)
+ printf (" -D__DGUX__");
+#endif /* __DGUX__ */
+#if defined (__UMAXV__)
+ printf (" -D__UMAXV__");
+#endif /* __UMAXV__ */
+#if defined (__m88k)
+ printf (" -D__m88k");
+#endif /* __m88k */
+#if defined (__uxpm__)
+ printf (" -DUSGr4 -Du370 -D__uxpm__");
+#endif /* __uxpm__ */
+#if defined (__uxps__)
+ printf (" -D__svr4__ -D__uxps__");
+#endif /* __uxps__ */
+#if defined (alliant)
+ printf (" -Dalliant");
+#endif /* alliant */
+#if defined (alpha)
+ printf (" -Dalpha");
+#endif /* alpha */
+#if defined (__alpha)
+ printf (" -D__alpha");
+#endif /* __alpha */
+#if defined (aix)
+ printf (" -Daix");
+#endif /* aix */
+#if defined (aixpc)
+ printf (" -Daixpc");
+#endif /* aixpc */
+#if defined (apollo)
+ printf (" -Dapollo");
+#endif /* apollo */
+#if defined (ardent)
+ printf (" -Dardent");
+#endif /* ardent */
+#if defined (att386)
+ printf (" -Datt386");
+#endif /* att386 */
+#if defined (att3b)
+ printf (" -Datt3b");
+#endif /* att3b */
+#if defined (bsd4_2)
+ printf (" -Dbsd4_2");
+#endif /* bsd4_2 */
+#if defined (bsd4_3)
+ printf (" -Dbsd4_3");
+#endif /* bsd4_3 */
+#if defined (__bsdi__)
+ printf (" -D__bsdi__");
+#endif /* __bsdi__ */
+#if defined (bsdi)
+ printf (" -Dbsdi");
+#endif /* bsdi */
+#if defined (__386BSD__)
+ printf (" -D__386BSD__");
+#endif /* __386BSD__ */
+#if defined (cadmus)
+ printf (" -Dcadmus");
+#endif /* cadmus */
+#if defined (clipper)
+ printf (" -Dclipper");
+#endif /* clipper */
+#if defined (concurrent)
+ printf (" -Dconcurrent");
+#endif /* concurrent */
+#if defined (convex) || defined (__convex__) || defined (__convexc__)
+# if !defined (__GNUC__)
+ printf (" -pcc");
+# endif /* !__GNUC__ */
+ printf (" -Dconvex");
+#endif /* convex */
+#if defined (dmert)
+ printf (" -Ddmert");
+#endif /* dmert */
+#if defined (gcos)
+ printf (" -Dgcos");
+#endif /* gcos */
+#if defined (gcx)
+ printf (" -Dgcx");
+#endif /* gcx */
+#if defined (gould)
+ printf (" -Dgould");
+#endif /* gould */
+#if defined (hbullx20)
+ printf (" -Dhbullx20");
+#endif /* hbullx20 */
+#if defined (hcx)
+ printf (" -Dhcx");
+#endif /* hcx */
+#if defined (host_mips)
+ printf (" -Dhost_mips");
+#endif /* host_mips */
+#if defined (hp9000) || defined (__hp9000)
+ printf (" -Dhp9000");
+#endif /* hp9000 || __hp9000 */
+#if defined (hp9000s200) || defined (__hp9000s200)
+ printf (" -Dhp9000s200");
+#endif /* hp9000s200 || __hp9000s200 */
+#if defined (hp9000s300) || defined (__hp9000s300)
+ printf (" -Dhp9000s300");
+#endif /* hp9000s300 || __hp9000s300 */
+#if defined (hp9000s500) || defined (__hp9000s500)
+ printf (" -Dhp9000s500");
+#endif /* hp9000s500 || __hp9000s500 */
+#if defined (hp9000s700) || defined (__hp9000s700)
+ printf (" -Dhp9000s700");
+#endif /* hp9000s700 || __hp9000s700 */
+#if defined (hp9000s800) || defined (__hp9000s800)
+ printf (" -Dhp9000s800");
+#endif /* hp9000s800 || __hp9000s800 */
+#if...
[truncated message content] |