On Wed, Apr 24 2019, Marc Espie <[email protected]> wrote:
> I fixed usage (missed -n), retagged as 1.1
>
> New tarball.
>
> - marked as only for clang archs (until the gcc 8 switch)
> - obey LDFLAGS/CXXFLAGS trivially
>
> - rename the package itself to random_run.
Nicer.
> I think keeping the short name for the command (rr) makes sense
> for now... I don't see mozilla's rr being ported any time soon.
Indeed, given the amount of #include <linux/.* lines in the rr source
code. I don't even want to know how it works under the hood...
I don't care much, but you may also consider users of your 'rr' command
on Linux, where 'rr' is already a thing.
ok jca@ to import if you fix NO_TESTS, please see below.
>>
>> As a result, I've written a new (smallish) command called rr:
>> -----------
>>
>> rr (random run) runs a command with randomized arguments.
>>
>> Basically,
>>
>> $ rr mpv *.mp4
>> will give you a true shuffle, that doesn't play the same file twice.
>>
>> there are more options:
>>
>> $ rr xv -nolimit -- *
>> allows you to specify options that won't be jumbled.
>>
>> $ rr -n 500 -x '.*.pdf' xv -nolimit -- *
>> will run xv several times on all files in the current directory
>> except those matching '.*.pdf', limiting each run to 500 parameters.
>>
>> ----------
>>
>> Port attached
>
>
> # $OpenBSD$
>
> # TODO awaiting the gcc8 switch
> ONLY_FOR_ARCHS = ${CLANG_ARCHS}
>
> COMMENT = run command with randomized parameters
> CATEGORIES = sysutils
> MAINTAINER = Marc Espie <[email protected]>
>
> GH_PROJECT = random_run
> GH_TAGNAME = 1.1
> GH_ACCOUNT = marcespie
>
> COMPILER = base-clang ports-gcc
>
> # BSD licence
> PERMIT_PACKAGE_CDROM = Yes
> NO_TESTS = Yes
>
>
NO_TESTS -> NO_TEST, extra empty line.
> WANTLIB = ${COMPILER_LIBCXX} c m
>
> MAKE_FLAGS = OPTIMIZE="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
>
> do-install:
> ${INSTALL_PROGRAM} ${WRKBUILD}/rr ${PREFIX}/bin
> ${INSTALL_MAN} ${WRKSRC}/rr.1 ${PREFIX}/man/man1
>
>
> .include <bsd.port.mk>
> SHA256 (random_run-1.1.tar.gz) = SkIj19KNe31ZKymf39/TVwQLv9jY1GdpSyY7h7B+aHY=
> SIZE (random_run-1.1.tar.gz) = 3475
> rr (random run) runs a command with randomized arguments.
>
> Basically,
>
> $ rr mpv *.mp4
> will give you a true shuffle, that doesn't play the same file twice.
>
> there are more options:
*There
>
> $ rr xv -nolimit -- *
> allows you to specify options that won't be jumbled.
>
> $ rr -n 500 -x '.*.pdf' xv -nolimit -- *
> will run xv several times on all files in the current directory
> except those matching '.*.pdf', limiting each run to 500 parameters.
>
> See the manpage for details
Missing period.
> @comment $OpenBSD: PLIST,v$
> @bin bin/rr
> @man man/man1/rr.1
>
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE