pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/shells/execshell



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Wed Jul 16 19:35:29 UTC 2025

Added Files:
        pkgsrc/shells/execshell: DESCR Makefile PLIST distinfo
        pkgsrc/shells/execshell/patches: patch-Makefile patch-execshell.c

Log Message:
Add execshell: Proof of concept execline REPL

This is a proof-of-concept interactive REPL for Laurent Bercot's
execline language. execshell provides an interactive interface with
readline/Emacs-alike line editing to the command lexer used by the
execlineb script launcher. For example:

$ ./execshell
> foreground { echo foo } echo bar
foo
bar
> pipeline { echo baz } sed -e "s/a/u/" -e "s/$/z/"
buzz
(Note that the prompt string here is > .)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/shells/execshell/DESCR \
    pkgsrc/shells/execshell/Makefile pkgsrc/shells/execshell/PLIST \
    pkgsrc/shells/execshell/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/shells/execshell/patches/patch-Makefile \
    pkgsrc/shells/execshell/patches/patch-execshell.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/shells/execshell/DESCR
diff -u /dev/null pkgsrc/shells/execshell/DESCR:1.1
--- /dev/null   Wed Jul 16 19:35:29 2025
+++ pkgsrc/shells/execshell/DESCR       Wed Jul 16 19:35:28 2025
@@ -0,0 +1,12 @@
+This is a proof-of-concept interactive REPL for Laurent Bercot's
+execline language. execshell provides an interactive interface with
+readline/Emacs-alike line editing to the command lexer used by the
+execlineb script launcher. For example:
+
+$ ./execshell
+> foreground { echo foo } echo bar
+foo
+bar
+> pipeline { echo baz } sed -e "s/a/u/" -e "s/$/z/"
+buzz
+(Note that the prompt string here is > .)
Index: pkgsrc/shells/execshell/Makefile
diff -u /dev/null pkgsrc/shells/execshell/Makefile:1.1
--- /dev/null   Wed Jul 16 19:35:29 2025
+++ pkgsrc/shells/execshell/Makefile    Wed Jul 16 19:35:28 2025
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2025/07/16 19:35:28 schmonz Exp $
+
+DISTNAME=              ${GITHUB_PROJECT}-${GITHUB_TAG}
+PKGNAME=               ${GITHUB_PROJECT}-0.0.20201101
+CATEGORIES=            shells
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=sysvinit/}
+GITHUB_PROJECT=                execshell
+GITHUB_TAG=            b0b41d50cdb09f26b7f31e960e078c0500c661f5
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              https://github.com/sysvinit/execshell/
+COMMENT=               Proof of concept execline REPL
+LICENSE=               isc
+
+USE_TOOLS+=            gmake
+
+INSTALLATION_DIRS=     bin share/doc/${PKGBASE}
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/${PKGBASE} ${DESTDIR}${PREFIX}/bin/
+       ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/
+
+.include "../../devel/skalibs/buildlink3.mk"
+.include "../../devel/linenoise/buildlink3.mk"
+.include "../../lang/execline/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/shells/execshell/PLIST
diff -u /dev/null pkgsrc/shells/execshell/PLIST:1.1
--- /dev/null   Wed Jul 16 19:35:29 2025
+++ pkgsrc/shells/execshell/PLIST       Wed Jul 16 19:35:28 2025
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2025/07/16 19:35:28 schmonz Exp $
+bin/execshell
+share/doc/execshell/README.md
Index: pkgsrc/shells/execshell/distinfo
diff -u /dev/null pkgsrc/shells/execshell/distinfo:1.1
--- /dev/null   Wed Jul 16 19:35:29 2025
+++ pkgsrc/shells/execshell/distinfo    Wed Jul 16 19:35:28 2025
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2025/07/16 19:35:28 schmonz Exp $
+
+BLAKE2s (execshell-b0b41d50cdb09f26b7f31e960e078c0500c661f5-b0b41d50cdb09f26b7f31e960e078c0500c661f5.tar.gz) = 5748c33de484476b6d36e02508aea1cb3f39f7175679d41a36ec340a6c1bf351
+SHA512 (execshell-b0b41d50cdb09f26b7f31e960e078c0500c661f5-b0b41d50cdb09f26b7f31e960e078c0500c661f5.tar.gz) = 
a501fea36fbc69892b5b583dd67167df4a0c6923ebda772615bc78c0d0c9340f14af620f478efad599597ed0ea91cb9a503e67c77c88fcdcaf971d31fc1fb2d7
+Size (execshell-b0b41d50cdb09f26b7f31e960e078c0500c661f5-b0b41d50cdb09f26b7f31e960e078c0500c661f5.tar.gz) = 3979 bytes
+SHA1 (patch-Makefile) = b0d0da6fbb547ba386213d78a7cc6db02e444f87
+SHA1 (patch-execshell.c) = 244a422ddce1d4c66aba4688c182720ac864eebd

Index: pkgsrc/shells/execshell/patches/patch-Makefile
diff -u /dev/null pkgsrc/shells/execshell/patches/patch-Makefile:1.1
--- /dev/null   Wed Jul 16 19:35:29 2025
+++ pkgsrc/shells/execshell/patches/patch-Makefile      Wed Jul 16 19:35:28 2025
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile,v 1.1 2025/07/16 19:35:28 schmonz Exp $
+
+Use pkgsrc-provided libs.
+
+--- Makefile.orig      2020-11-01 11:13:37.000000000 +0000
++++ Makefile
+@@ -1,14 +1,14 @@
+ 
+ CC ?= gcc
+ CFLAGS ?= -Wall -Wextra -O2
+-LIBS ?= -lexecline -lskarnet
++LIBS ?= -lexecline -lskarnet -llinenoise
+ 
+-SOURCES := execshell.c linenoise/linenoise.c linenoise/encodings/utf8.c
++SOURCES := execshell.c # linenoise/linenoise.c linenoise/encodings/utf8.c
+ 
+ .PHONY: all clean
+ 
+ all:
+-      $(CC) $(CFLAGS) -o execshell $(SOURCES) $(LIBS)
++      $(CC) $(CFLAGS) -o execshell $(SOURCES) $(LDFLAGS) $(LIBS)
+ 
+ clean:
+       rm -f execshell
Index: pkgsrc/shells/execshell/patches/patch-execshell.c
diff -u /dev/null pkgsrc/shells/execshell/patches/patch-execshell.c:1.1
--- /dev/null   Wed Jul 16 19:35:29 2025
+++ pkgsrc/shells/execshell/patches/patch-execshell.c   Wed Jul 16 19:35:28 2025
@@ -0,0 +1,17 @@
+$NetBSD: patch-execshell.c,v 1.1 2025/07/16 19:35:28 schmonz Exp $
+
+Use pkgsrc linenoise.
+
+--- execshell.c.orig   2025-07-16 19:21:15.162568036 +0000
++++ execshell.c
+@@ -16,8 +16,9 @@
+ #include <execline/execline.h>
+ 
+ #define UTF8
++#undef UTF8
+ 
+-#include "linenoise/linenoise.h"
++#include <linenoise.h>
+ #ifdef UTF8
+ #include "linenoise/encodings/utf8.h"
+ #endif



Home | Main Index | Thread Index | Old Index