pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/xe Add xe, a simple xargs and apply replacement.
details: https://anonhg.NetBSD.org/pkgsrc/rev/c703d9238f7c
branches: trunk
changeset: 372337:c703d9238f7c
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Sun Jan 23 19:42:33 2022 +0000
description:
Add xe, a simple xargs and apply replacement.
`xe` is a new tool for constructing command lines from file listings or
arguments, which includes the best features of `xargs(1)` and
`apply(1)`. `xe` means "execute for every ...".
Benefits over xargs:
* Sane defaults (behaves like `xargs -d'\n' -I{} -n1 -r`).
* No weird parsing, arguments are separated linewise or by NUL byte.
* Can also take arguments from command-line.
* No shell involved unless `-s` is used.
* `{}` replacing possible with multiple arguments.
* Support for patterns to run different commands depending on the argument.
Benefits over apply:
* Parallel mode.
* Sane argument splitting.
* Can use shell-syntax instead of escape characters.
diffstat:
sysutils/xe/DESCR | 16 ++++++++++++++++
sysutils/xe/Makefile | 18 ++++++++++++++++++
sysutils/xe/PLIST | 4 ++++
sysutils/xe/distinfo | 5 +++++
4 files changed, 43 insertions(+), 0 deletions(-)
diffs (59 lines):
diff -r 158ea4ed6dd8 -r c703d9238f7c sysutils/xe/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xe/DESCR Sun Jan 23 19:42:33 2022 +0000
@@ -0,0 +1,16 @@
+`xe` is a new tool for constructing command lines from file listings or
+arguments, which includes the best features of `xargs(1)` and
+`apply(1)`. `xe` means "execute for every ...".
+
+Benefits over xargs:
+* Sane defaults (behaves like `xargs -d'\n' -I{} -n1 -r`).
+* No weird parsing, arguments are separated linewise or by NUL byte.
+* Can also take arguments from command-line.
+* No shell involved unless `-s` is used.
+* `{}` replacing possible with multiple arguments.
+* Support for patterns to run different commands depending on the argument.
+
+Benefits over apply:
+* Parallel mode.
+* Sane argument splitting.
+* Can use shell-syntax instead of escape characters.
diff -r 158ea4ed6dd8 -r c703d9238f7c sysutils/xe/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xe/Makefile Sun Jan 23 19:42:33 2022 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2022/01/23 19:42:33 schmonz Exp $
+
+GITHUB_TAG= refs/tags/v${PKGVERSION_NOREV}
+DISTNAME= xe-0.11
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=leahneukirchen/}
+
+MAINTAINER= schmonz%NetBSD.org@localhost
+HOMEPAGE= https://github.com/leahneukirchen/xe/
+COMMENT= Simple xargs and apply replacement
+LICENSE= public-domain
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+MAKE_FLAGS+= PREFIX=${PREFIX:Q}
+MAKE_FLAGS+= MANDIR=${PREFIX:Q}/${PKGMANDIR:Q}
+
+.include "../../mk/bsd.pkg.mk"
diff -r 158ea4ed6dd8 -r c703d9238f7c sysutils/xe/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xe/PLIST Sun Jan 23 19:42:33 2022 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/23 19:42:33 schmonz Exp $
+bin/xe
+man/man1/xe.1
+share/zsh/site-functions/_xe
diff -r 158ea4ed6dd8 -r c703d9238f7c sysutils/xe/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xe/distinfo Sun Jan 23 19:42:33 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/01/23 19:42:33 schmonz Exp $
+
+BLAKE2s (xe-0.11.tar.gz) = 8f8e522dc2155d2a5f000206dc04637467725302d56e7779bdc733dae4db8829
+SHA512 (xe-0.11.tar.gz) = 848b35f31e480f386cc48feaca60d59159eaaca95213039d5474c26e5d0c87092905029f32770c3b356d29822027cee9fc14b46e0127754ce2135cb825928bf6
+Size (xe-0.11.tar.gz) = 13578 bytes
Home |
Main Index |
Thread Index |
Old Index