New package: rc-1.7.1

This commit is contained in:
Christian Neukirchen 2014-07-01 20:31:22 +02:00
parent d20081a3a4
commit d55878ec0f
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,24 @@
--- tree.c 2001-10-01 09:21:08.000000000 -0300
+++ tree.c.new 2007-09-30 00:36:37.968464448 -0300
@@ -81,8 +81,9 @@
n->u[2].i = s->u[2].i;
break;
case nWord:
- n = (*alloc)(offsetof(Node, u[2]));
+ n = (*alloc)(offsetof(Node, u[3]));
n->u[0].s = strcpy((char *) (*alloc)(strlen(s->u[0].s) + 1), s->u[0].s);
+ n->u[2].i = s->u[2].i;
if (s->u[1].s != NULL) {
size_t i = strlen(s->u[0].s);
n->u[1].s = (*alloc)(i);
--- footobar.c 2001-10-12 06:10:27.000000000 -0300
+++ footobar.c.new 2007-09-30 00:39:06.458259082 -0300
@@ -73,7 +73,7 @@
case nForin: fmtprint(f, "for(%T in %T)%T", n->u[0].p, n->u[1].p, n->u[2].p); break;
case nVarsub: fmtprint(f, "$%T(%T)", n->u[0].p, n->u[1].p); break;
case nWord:
- fmtprint(f, quotep(n->u[0].s, dollar) ? "%#S" : "%S", n->u[0].s);
+ fmtprint(f, n->u[2].i || quotep(n->u[0].s, dollar) ? "%#S" : "%S", n->u[0].s);
break;
case nLappend: {
static bool inlist;

14
srcpkgs/rc/template Normal file
View file

@ -0,0 +1,14 @@
# Template file for 'rc'
pkgname=rc
version=1.7.1
revision=1
build_style=gnu-configure
configure_args="--with-readline"
makedepends="readline-devel"
depends=""
short_desc="An alternative implementation of the plan 9 rc shell"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://tobold.org/article/rc"
distfiles="http://static.tobold.org/$pkgname/$pkgname-$version.tar.gz"
checksum=1cff23e897a038422458ba01567a5a2650935205862c3bbf73e773807c248240