]> git.pld-linux.org Git - packages/ash.git/commitdiff
updated to currnent FreeBSD cvs.
authorMichal Moskal <michal@moskal.me>
Thu, 18 Jan 2001 17:23:52 +0000 (17:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ash-echo.patch -> 1.2
    ash-exit.patch -> 1.2
    ash-fd.patch -> 1.2
    ash-linux-mkinit.patch -> 1.2
    ash-linux-sighup.patch -> 1.2
    ash-make.patch -> 1.2
    ash-mknodes.patch -> 1.2
    ash-mksyntax.patch -> 1.2
    ash.spec -> 1.28

ash-echo.patch [deleted file]
ash-exit.patch [deleted file]
ash-fd.patch [deleted file]
ash-linux-mkinit.patch [deleted file]
ash-linux-sighup.patch [deleted file]
ash-make.patch [deleted file]
ash-mknodes.patch [deleted file]
ash-mksyntax.patch [deleted file]
ash.spec

diff --git a/ash-echo.patch b/ash-echo.patch
deleted file mode 100644 (file)
index dd6992b..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
---- ash-linux-0.2/bltin/echo.c.foo     Sat Sep 11 23:55:02 1999
-+++ ash-linux-0.2/bltin/echo.c Sat Sep 11 23:57:48 1999
-@@ -63,7 +63,13 @@
-       if (argc)
-               ap++;
-       if ((p = *ap) != NULL) {
--              if (equal(p, "-n")) {
-+              if (equal(p,"-en") || equal(p,"-ne")) {
-+                      nflag++;
-+#ifndef eflag
-+                      eflag++;
-+#endif
-+                      ap++;
-+              } else  if (equal(p, "-n")) {
-                       nflag++;
-                       ap++;
-               } else if (equal(p, "-e")) {
diff --git a/ash-exit.patch b/ash-exit.patch
deleted file mode 100644 (file)
index dd6845b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
---- ash-linux-0.2/eval.c.exit  Wed Mar 29 15:43:37 2000
-+++ ash-linux-0.2/eval.c       Wed Mar 29 15:39:29 2000
-@@ -206,12 +206,14 @@
-               break;
-       case NAND:
-               evaltree(n->nbinary.ch1, EV_TESTED);
-+              flags |= EV_TESTED;
-               if (evalskip || exitstatus != 0)
-                       goto out;
-               evaltree(n->nbinary.ch2, flags);
-               break;
-       case NOR:
-               evaltree(n->nbinary.ch1, EV_TESTED);
-+              flags |= EV_TESTED;
-               if (evalskip || exitstatus == 0)
-                       goto out;
-               evaltree(n->nbinary.ch2, flags);
-@@ -232,6 +234,7 @@
-               int status = 0; 
-               evaltree(n->nif.test, EV_TESTED);
-+              flags |= EV_TESTED;
-               if (evalskip)
-                       goto out;
-               if (exitstatus == 0) {
diff --git a/ash-fd.patch b/ash-fd.patch
deleted file mode 100644 (file)
index 2ad698c..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
---- ash-linux-0.2/parser.c.foo Sat Sep 11 17:33:40 1999
-+++ ash-linux-0.2/parser.c     Sat Sep 11 17:36:02 1999
-@@ -552,15 +552,11 @@
-               }
-       } else if (n->type == NTOFD || n->type == NFROMFD) {
-               if (is_digit(wordtext[0]))
--                      n->ndup.dupfd = digit_val(wordtext[0]);
-+                      n->ndup.dupfd = atoi(wordtext);
-               else if (wordtext[0] == '-')
-                       n->ndup.dupfd = -1;
-               else
--                      goto bad;
--              if (wordtext[1] != '\0') {
--bad:
-                       synerror("Bad fd number");
--              }
-       } else {
-               n->nfile.fname = (union node *)stalloc(sizeof (struct narg));
-               n = n->nfile.fname;
diff --git a/ash-linux-mkinit.patch b/ash-linux-mkinit.patch
deleted file mode 100644 (file)
index 1755b60..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- ash-linux-0.2/mkinit.c.orig        Tue Aug 24 06:12:51 1993
-+++ ash-linux-0.2/mkinit.c     Thu Sep 23 16:23:46 1999
-@@ -349,7 +350,7 @@
-               if (! amiddecls)
-                       addchar('\n', &decls);
-               q = NULL;
--              for (p = line1 + 6 ; *p != '=' && *p != '/' ; p++);
-+              for (p = line1 + 6 ; *p != '\n' && *p != '=' && *p != '/' ; p++);
-               if (*p == '=') {                /* eliminate initialization */
-                       for (q = p ; *q && *q != ';' ; q++);
-                       if (*q == '\0')
diff --git a/ash-linux-sighup.patch b/ash-linux-sighup.patch
deleted file mode 100644 (file)
index 6d535c6..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -Nur ash-linux-0.2.ORIG/jobs.c ash-linux-0.2/jobs.c
---- ash-linux-0.2.ORIG/jobs.c  Mon Oct  4 15:48:14 1993
-+++ ash-linux-0.2/jobs.c       Tue Jan 25 14:09:03 2000
-@@ -554,6 +554,7 @@
-               } else if (mode == FORK_BG) {
-                       ignoresig(SIGINT);
-                       ignoresig(SIGQUIT);
-+                      ignoresig(SIGHUP);
-                       if ((jp == NULL || jp->nprocs == 0)
-                           && ! fd0_redirected_p ()) {
-                               close(0);
-@@ -565,6 +566,7 @@
-               if (mode == FORK_BG) {
-                       ignoresig(SIGINT);
-                       ignoresig(SIGQUIT);
-+                      ignoresig(SIGHUP);
-                       if ((jp == NULL || jp->nprocs == 0)
-                           && ! fd0_redirected_p ()) {
-                               close(0);
diff --git a/ash-make.patch b/ash-make.patch
deleted file mode 100644 (file)
index 61ca518..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-diff -Nur ash-linux-0.2/Makefile ash-linux-0.2.orig/Makefile
---- ash-linux-0.2/Makefile     Mon Oct  4 19:48:13 1993
-+++ ash-linux-0.2.orig/Makefile        Tue Sep 29 09:48:30 1998
-@@ -1,5 +1,3 @@
--#     Makefile,v 1.7 1993/08/09 04:58:18 mycroft Exp
--
- PROG= sh
- SRCS= builtins.c cd.c dirent.c bltin/echo.c error.c eval.c exec.c expand.c \
-       input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
-@@ -14,15 +12,15 @@
- OBJS =        $(OBJ1) $(OBJ2)
--CFLAGS = -O2 -fomit-frame-pointer -m486 -DSHELL -I/usr/include/bsd -I.
--LDFLAGS = -s -lbsd
-+CFLAGS = $(OPT_FLAGS) -DSHELL -I/usr/include -I. -D__BIT_TYPES_DEFINED__
-+LDFLAGS += -s 
- CLEANFILES =\
-       builtins.c builtins.h init.c mkinit mknodes mksyntax \
-       nodes.c nodes.h syntax.c syntax.h token.def
- all:  $(OBJS)
--      $(CC) -o $(PROG) $(OBJS) $(LDFLAGS)
-+      $(CC) $(STATIC) -o $(PROG) $(OBJS) $(LDFLAGS)
- install: all
-       install sh /bin/ash
-@@ -32,7 +30,7 @@
- token.def: mktokens
-       sh ./mktokens
--builtins.h builtins.c: mkbuiltins builtins
-+builtins.h builtins.c: mkbuiltins 
-       sh ./mkbuiltins
- init.c: mkinit $(SRCS)
-@@ -56,4 +54,7 @@
- clean:
-       rm -f core $(CLEANFILES) $(PROG) $(OBJS)
-+
-+.c.o:
-+      ${CC} ${CFLAGS} -o $@ -c $<
diff --git a/ash-mknodes.patch b/ash-mknodes.patch
deleted file mode 100644 (file)
index 0e74df9..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-diff -Nur ash-linux-0.2/mknodes.c ash-linux-0.2.orig/mknodes.c
---- ash-linux-0.2/mknodes.c    Mon Sep  6 11:04:23 1993
-+++ ash-linux-0.2.orig/mknodes.c       Tue Sep 29 09:47:01 1998
-@@ -89,7 +89,7 @@
- struct str *curstr;           /* current structure */
--FILE *infp = stdin;
-+FILE *infp;
- char line[1024];
- int linno;
- char *linep;
-@@ -118,6 +118,7 @@
-       }
-       output(argv[2]);
-       return(0);
-+      infp = stdin;
- }
diff --git a/ash-mksyntax.patch b/ash-mksyntax.patch
deleted file mode 100644 (file)
index 5da100d..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-The code in question had undefined behaviour in C.
-
---- ash-linux-0.2/mksyntax.c.jj        Tue Aug 24 11:12:52 1993
-+++ ash-linux-0.2/mksyntax.c   Wed Jun 21 08:43:03 2000
-@@ -107,7 +107,7 @@ int digit_contig;  /* true if digits are 
- main() {
-       char c;
--      char d;
-+      unsigned char d, e;
-       int sign;
-       int i;
-       char buf[80];
-@@ -132,9 +132,10 @@ main() {
-               sign = 1;
-       else
-               sign = 0;
--      for (nbits = 1 ; ; nbits++) {
-+      e = -1;
-+      for (nbits = 1 ; nbits < 31; nbits++) {
-               d = (1 << nbits) - 1;
--              if (d == c)
-+              if (d == e)
-                       break;
-       }
-       printf("%s %d bit chars\n", sign? "signed" : "unsigned", nbits);
index 20135a2715a40dde83b6c6e9d757d4af0ea23e21..66ff5f0e3454a33c35e573f2cb710cd4e4f58a95 100644 (file)
--- a/ash.spec
+++ b/ash.spec
@@ -4,21 +4,13 @@ Summary(fr):  Shell Bourne r
 Summary(pl):   Ma³y shell bourne'a 
 Summary(tr):   Ufak bir bourne kabuðu
 Name:          ash
-Version:       0.2
-Release:       27
+Version:       0.3
+Release:       1
 License:       BSD
 Group:         Applications/Shells
 Group(de):     Applikationen/Shells
 Group(pl):     Aplikacje/Pow³oki
-Source0:       ftp://sunsite.unc.edu/pub/Linux/system/shells/%{name}-linux-%{version}.tar.gz
-Patch0:                %{name}-make.patch
-Patch1:                %{name}-mknodes.patch
-Patch2:                %{name}-fd.patch
-Patch3:                %{name}-exit.patch
-Patch4:                %{name}-echo.patch
-Patch5:                %{name}-mksyntax.patch
-Patch6:                %{name}-linux-sighup.patch
-Patch7:                %{name}-linux-mkinit.patch
+Source0:       ftp://ftp.pld.org.pl/people/malekith/%{name}-linux-%{version}.tar.gz
 Prereq:                fileutils
 Prereq:                grep
 BuildRequires: glibc-static
@@ -90,19 +82,13 @@ avantaj
 
 %prep
 %setup -q -n ash-linux-%{version}
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
 
 %build
-%{__make} OPT_FLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}" STATIC=-static
+%{__make} OPT_FLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}" \
+       LDFLAGS="-static %{!?debug:-s}"
 mv -f sh ash.static
-%{__make} OPT_FLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}"
+%{__make} OPT_FLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}" \
+       LDFLAGS="%{!?debug:-s}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.111905 seconds and 4 git commands to generate.