home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / bash-1.13.4-src.lha / src / diffs / bash-1.13.4.diffs < prev   
Text File  |  1993-12-14  |  20KB  |  641 lines

  1. diff -rc bash-1.13.4-fsf/.machine bash-1.13.4-amiga/.machine
  2. *** bash-1.13.4-fsf/.machine    Tue Aug 31 20:37:31 1993
  3. --- bash-1.13.4-amiga/.machine    Sun Nov 21 14:41:24 1993
  4. ***************
  5. *** 1 ****
  6. ! bash last made for a sparc running SunOS4
  7. --- 1 ----
  8. ! bash last made for a amiga  running amigados 
  9. diff -rc bash-1.13.4-fsf/Makefile bash-1.13.4-amiga/Makefile
  10. *** bash-1.13.4-fsf/Makefile    Tue Aug 31 18:52:30 1993
  11. --- bash-1.13.4-amiga/Makefile    Sat Nov 20 15:48:47 1993
  12. ***************
  13. *** 18,25 ****
  14.   
  15.   # Force CPPNAME to be the name of your C preprocesor if Bash can't
  16.   # find it.  For instance, `CPPNAME=/usr/libexec/cpp' on 4.4 BSD.
  17. ! CPPNAME =
  18. ! CPP     = `$(CPPMAGIC) $(GETCPPSYMS) $(CPPNAME)` -P
  19.   
  20.   # If all else fails, try this line instead.
  21.   # CPP     = $(CC) -E
  22. --- 18,26 ----
  23.   
  24.   # Force CPPNAME to be the name of your C preprocesor if Bash can't
  25.   # find it.  For instance, `CPPNAME=/usr/libexec/cpp' on 4.4 BSD.
  26. ! CPPNAME = /gcc/lib/gcc-lib/amigados/2.5.7/cpp
  27. ! #CPP     = `$(CPPMAGIC) $(GETCPPSYMS) $(CPPNAME)` -P
  28. ! CPP    =  $(CPPNAME) `$(GETCPPSYMS)` -P
  29.   
  30.   # If all else fails, try this line instead.
  31.   # CPP     = $(CC) -E
  32. ***************
  33. *** 44,52 ****
  34.   # much trouble with this, just forget it.  It is for making
  35.   # bash-Makefile pretty and readable; something that isn't strictly
  36.   # necessary.
  37. ! # SQUASH_BLANKS = cat -s
  38.   #
  39. ! SQUASH_BLANKS = $(GAWK) -f $(CAT_S)
  40.   
  41.   all:    .notified bash-Makefile
  42.       $(MAKE) $(MFLAGS) $(MAKEARGS) -f bash-Makefile
  43. --- 45,53 ----
  44.   # much trouble with this, just forget it.  It is for making
  45.   # bash-Makefile pretty and readable; something that isn't strictly
  46.   # necessary.
  47. ! SQUASH_BLANKS = cat -s
  48.   #
  49. ! #SQUASH_BLANKS = $(GAWK) -f $(CAT_S)
  50.   
  51.   all:    .notified bash-Makefile
  52.       $(MAKE) $(MFLAGS) $(MAKEARGS) -f bash-Makefile
  53. diff -rc bash-1.13.4-fsf/bashline.c bash-1.13.4-amiga/bashline.c
  54. *** bash-1.13.4-fsf/bashline.c    Fri Nov 12 15:55:36 1993
  55. --- bash-1.13.4-amiga/bashline.c    Sat Nov 20 15:15:57 1993
  56. ***************
  57. *** 1569,1576 ****
  58. --- 1569,1578 ----
  59.   bash_complete_username_internal (what_to_do)
  60.        int what_to_do;
  61.   {
  62. + #ifndef amigados
  63.     bash_specific_completion
  64.       (what_to_do, (Function *)username_completion_function);
  65. + #endif /* amigados */
  66.   }
  67.   
  68.   static void
  69. diff -rc bash-1.13.4-fsf/builtins/Makefile bash-1.13.4-amiga/builtins/Makefile
  70. *** bash-1.13.4-fsf/builtins/Makefile    Tue Aug 31 18:52:32 1993
  71. --- bash-1.13.4-amiga/builtins/Makefile    Sat Nov 20 16:26:25 1993
  72. ***************
  73. *** 59,66 ****
  74.   
  75.   builtext.h builtins.c: $(MKBUILTINS) $(DEFS)
  76.       $(RM) builtext.h builtins.c
  77. !     ./$(MKBUILTINS) -externfile builtext.h -structfile builtins.c \
  78. !     -noproduction $(DIRECTDEFINE) $(DEFS)
  79.   
  80.   mkbuiltins: mkbuiltins.c ../config.h
  81.       $(CC) $(CFLAGS) -o $(MKBUILTINS) mkbuiltins.c
  82. --- 59,66 ----
  83.   
  84.   builtext.h builtins.c: $(MKBUILTINS) $(DEFS)
  85.       $(RM) builtext.h builtins.c
  86. !     ./$(MKBUILTINS) -externfile - -noproduction $(DIRECTDEFINE) $(DEFS) >builtext.h
  87. !     ./$(MKBUILTINS) -structfile builtins.c -noproduction $(DIRECTDEFINE) $(DEFS)
  88.   
  89.   mkbuiltins: mkbuiltins.c ../config.h
  90.       $(CC) $(CFLAGS) -o $(MKBUILTINS) mkbuiltins.c
  91. diff -rc bash-1.13.4-fsf/builtins/mkbuiltins.c bash-1.13.4-amiga/builtins/mkbuiltins.c
  92. *** bash-1.13.4-fsf/builtins/mkbuiltins.c    Tue Aug 31 18:52:33 1993
  93. --- bash-1.13.4-amiga/builtins/mkbuiltins.c    Sat Nov 20 15:16:04 1993
  94. ***************
  95. *** 201,207 ****
  96.   
  97.         if (extern_filename)
  98.       {
  99. !       externfile = fopen (extern_filename, "w");
  100.   
  101.         if (!externfile)
  102.           file_error (extern_filename);
  103. --- 201,210 ----
  104.   
  105.         if (extern_filename)
  106.       {
  107. !       if (strcmp (extern_filename, "-") == 0)
  108. !         externfile = stdout;
  109. !       else
  110. !         externfile = fopen (extern_filename, "w");
  111.   
  112.         if (!externfile)
  113.           file_error (extern_filename);
  114. ***************
  115. *** 242,248 ****
  116.         unlink (temp_struct_filename);
  117.       }
  118.   
  119. !       if (externfile)
  120.       fclose (externfile);
  121.       }
  122.   
  123. --- 245,251 ----
  124.         unlink (temp_struct_filename);
  125.       }
  126.   
  127. !       if (externfile && externfile != stdout)
  128.       fclose (externfile);
  129.       }
  130.   
  131. ***************
  132. *** 1049,1054 ****
  133. --- 1052,1058 ----
  134.             /* Write the extern definition. */
  135.             if (externfile)
  136.           {
  137. +           fprintf (externfile, "/* %s */\n", defs -> filename);
  138.             if (builtin->function)
  139.               fprintf (externfile, "extern int %s ();\n",
  140.                    builtin->function);
  141. diff -rc bash-1.13.4-fsf/builtins/psize.sh bash-1.13.4-amiga/builtins/psize.sh
  142. *** bash-1.13.4-fsf/builtins/psize.sh    Tue Aug 31 18:52:34 1993
  143. --- bash-1.13.4-amiga/builtins/psize.sh    Sat Nov 20 15:16:06 1993
  144. ***************
  145. *** 11,17 ****
  146.   echo " */"
  147.   echo ""
  148.   
  149. ! ./psize.aux 2>/tmp/pipesize | sleep 3
  150.   
  151.   echo "#define PIPESIZE `cat /tmp/pipesize`"
  152.   
  153. --- 11,20 ----
  154.   echo " */"
  155.   echo ""
  156.   
  157. ! #./psize.aux 2>/tmp/pipesize | sleep 3
  158. ! # Begin Amiga hack
  159. ! echo 5120 >/tmp/pipesize
  160. ! #endif Amiga hack
  161.   
  162.   echo "#define PIPESIZE `cat /tmp/pipesize`"
  163.   
  164. diff -rc bash-1.13.4-fsf/config.h bash-1.13.4-amiga/config.h
  165. *** bash-1.13.4-fsf/config.h    Tue Aug 31 18:52:35 1993
  166. --- bash-1.13.4-amiga/config.h    Sat Nov 20 16:07:25 1993
  167. ***************
  168. *** 52,58 ****
  169. --- 52,60 ----
  170.   
  171.   /* Define JOB_CONTROL if your operating system supports
  172.      BSD-like job control. */
  173. + #ifndef amigados
  174.   #define JOB_CONTROL
  175. + #endif /* amigados */
  176.   
  177.   /* Note that vanilla System V machines don't support BSD job control,
  178.      although some do support Posix job control. */
  179. ***************
  180. *** 98,110 ****
  181. --- 100,122 ----
  182.   #endif /* BANG_HISTORY && !HISTORY */
  183.   
  184.   /* The default value of the PATH variable. */
  185. + #ifdef amigados
  186. + #define DEFAULT_PATH_VALUE \
  187. +   ":/c:/gcc:/usr/bin:/bin:/usr/local/bin:.:/local/bin"
  188. + #else
  189.   #define DEFAULT_PATH_VALUE \
  190.     ":/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:/etc:/usr/etc"
  191. + #endif /* amigados */
  192.   
  193.   /* The value for PATH when invoking `command -p'.  This is only used when
  194.      the Posix.2 confstr () function, or CS_PATH define are not present. */
  195. + #ifdef amigados
  196. + #define STANDARD_UTILS_PATH \
  197. +   "/c:/gcc:/usr/bin:/bin:/usr/local/bin:.:/local/bin"
  198. + #else
  199.   #define STANDARD_UTILS_PATH \
  200.     "/bin:/usr/bin:/usr/ucb:/usr/sbin:/etc:/usr/etc"
  201. + #endif /* amigados */
  202.   
  203.   /* Define V9_ECHO if you want to give the echo builtin backslash-escape
  204.      interpretation using the -e option, in the style of the Bell Labs 9th
  205. ***************
  206. *** 137,142 ****
  207. --- 149,174 ----
  208.   /* Define DISABLED_BUILTINS if you want "builtin foo" to always run the
  209.      shell builtin "foo", even if it has been disabled with "enable -n foo". */
  210.   /* #define DISABLED_BUILTINS */
  211. + #ifdef amigados
  212. + #define SYSTEM_NAME "amiga"
  213. + #define OS_NAME "amigados"
  214. + #define PPROMPT "bash$ "
  215. + #define SPROMPT "> "
  216. + #ifdef HOSTTYPE
  217. + # undef HOSTTYPE
  218. + #endif /* HOSTTYPE */
  219. + #define HOSTTYPE "amiga"
  220. + #ifndef MAINTAINER
  221. + # define MAINTAINER "phb@colombo.telesys-innov.fr"
  222. + #endif /* MAINTAINER */
  223. + #ifdef JOB_CONTROL
  224. + # undef JOB_CONTROL
  225. + #endif /* JOB_CONTROL */
  226. + #ifdef HAVE_BSD_SIGNALS
  227. + # undef HAVE_BSD_SIGNALS
  228. + #endif
  229. + #endif /* amigados */
  230.   
  231.   /* Define PROCESS_SUBSTITUTION if you want the K*rn shell-like process
  232.      substitution features "<(file)". */
  233. diff -rc bash-1.13.4-fsf/cpp-Makefile bash-1.13.4-amiga/cpp-Makefile
  234. *** bash-1.13.4-fsf/cpp-Makefile    Fri Nov 12 15:54:50 1993
  235. --- bash-1.13.4-amiga/cpp-Makefile    Sat Nov 20 16:35:05 1993
  236. ***************
  237. *** 248,254 ****
  238.          $(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR) \
  239.          $(DIRENT) $(DIRENTH) $(STRINGH) $(VARARGSH) $(STRCHR) $(DEVFD) \
  240.          -D$(Machine) -D$(OS)
  241. ! DEBUG_FLAGS = $(PROFILE_FLAGS) -O -g
  242.   LDFLAGS    = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS)
  243.   CFLAGS    = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS) \
  244.         $(MALLOC_CFLAGS)
  245. --- 248,254 ----
  246.          $(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR) \
  247.          $(DIRENT) $(DIRENTH) $(STRINGH) $(VARARGSH) $(STRCHR) $(DEVFD) \
  248.          -D$(Machine) -D$(OS)
  249. ! DEBUG_FLAGS = $(PROFILE_FLAGS) -O
  250.   LDFLAGS    = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS)
  251.   CFLAGS    = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS) \
  252.         $(MALLOC_CFLAGS)
  253. ***************
  254. *** 289,295 ****
  255.        $(MAKE) $(MFLAGS) CP