FreeBSD Bugzilla – Attachment 172911 Details for
Bug 211323
[NEW PORT] sysutils/xe: Simple xargs and apply replacement
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
xe.shar
xe.shar (text/plain), 2.77 KB, created by
Tobias Kortkamp
on 2016-07-24 03:50:49 UTC
(
hide
)
Description:
xe.shar
Filename:
MIME Type:
Creator:
Tobias Kortkamp
Created:
2016-07-24 03:50:49 UTC
Size:
2.77 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># xe ># xe/Makefile ># xe/distinfo ># xe/pkg-descr ># xe/files ># xe/files/patch-xe.c ># >echo c - xe >mkdir -p xe > /dev/null 2>&1 >echo x - xe/Makefile >sed 's/^X//' >xe/Makefile << '37a37242d648ab2e12107d8aab75c4ba' >X# Created by: Tobias Kortkamp <t@tobik.me> >X# $FreeBSD$ >X >XPORTNAME= xe >XPORTVERSION= 0.6.1 >XDISTVERSIONPREFIX= v >XCATEGORIES= sysutils >X >XMAINTAINER= t@tobik.me >XCOMMENT= Simple xargs and apply replacement >X >XLICENSE= CC0-1.0 >X >XUSE_GITHUB= yes >XGH_ACCOUNT= chneukirchen >XGH_PROJECT= xe >X >XMAKE_ARGS= CFLAGS="${CFLAGS}" \ >X MANDIR="${PREFIX}/man" >X >XPLIST_FILES= bin/xe \ >X man/man1/xe.1.gz >X >Xpost-install: >X @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xe >X >X.include <bsd.port.mk> >37a37242d648ab2e12107d8aab75c4ba >echo x - xe/distinfo >sed 's/^X//' >xe/distinfo << 'bc3fe6ccd55c3b2cfc17b6fdc923f2ec' >XTIMESTAMP = 1469327893 >XSHA256 (chneukirchen-xe-v0.6.1_GH0.tar.gz) = 36036d0e9464233d3113af187c473491298ed1168976330d7dd615b8f0521b96 >XSIZE (chneukirchen-xe-v0.6.1_GH0.tar.gz) = 6889 >bc3fe6ccd55c3b2cfc17b6fdc923f2ec >echo x - xe/pkg-descr >sed 's/^X//' >xe/pkg-descr << 'd71d0a5271bb22f48c87f99ec031d8c3' >Xxe is a tool for constructing command lines from file listings or >Xarguments, which includes the best features of xargs(1) and apply(1). >X >XBenefits over xargs: >X- Sane defaults (behaves like xargs -d'\n' -I{} -n1 -r). >X- No weird parsing, arguments are seperated linewise or by NUL byte. >X- Can also take arguments from command-line. >X- No shell involved unless -s is used. >X- {} replacing possible with multiple arguments. >X >XWWW: https://github.com/chneukirchen/xe/ >d71d0a5271bb22f48c87f99ec031d8c3 >echo c - xe/files >mkdir -p xe/files > /dev/null 2>&1 >echo x - xe/files/patch-xe.c >sed 's/^X//' >xe/files/patch-xe.c << '4f7b5b3fae0f2c262851326d2d550d0f' >X--- xe.c.orig 2016-05-20 18:14:18 UTC >X+++ xe.c >X@@ -13,6 +13,7 @@ >X >X #include <limits.h> >X #include <errno.h> >X+#include <signal.h> >X #include <stdio.h> >X #include <stdlib.h> >X #include <string.h> >X@@ -100,7 +101,7 @@ mywait() >X } else if (WEXITSTATUS(status) > 125) { >X exit(WEXITSTATUS(status)); >X } >X- } else if (WIFSIGNALED(status)) { >X+ } else if (WIFSIGNALED(status) && !(fflag && WTERMSIG(status) == SIGPIPE)) { >X fprintf(stderr, "xe: pid %d terminated by signal %d\n", >X pid, WTERMSIG(status)); >X exit(125); >X@@ -353,6 +354,7 @@ main(int argc, char *argv[], char *envp[ >X pusharg("/bin/sh"); >X pusharg("-c"); >X pusharg(sflag); >X+ pusharg("--"); >X pusharg("-"); >X } else if (optind >= cmdend) { >X pusharg("printf"); >4f7b5b3fae0f2c262851326d2d550d0f >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 211323
: 172911